Codebase list libmawk / a323d5b2-e0eb-4fad-b708-b7817dc988fe/main tools / unwarn_all.sh
a323d5b2-e0eb-4fad-b708-b7817dc988fe/main

Tree @a323d5b2-e0eb-4fad-b708-b7817dc988fe/main (Download .tar.gz)

unwarn_all.sh @a323d5b2-e0eb-4fad-b708-b7817dc988fe/main

b761e9e
 
 
 
 
 
 
 
 
 
#!/bin/sh

# This file is placed in the Public Domain.

# Comment all #warnings in all .h and .c files, recursively.
# Useful on systems with CC with no support for #warning.

action=`echo "$0" | sed "s/_all//"`

find . -name '*.[ch]' -exec $action {} \;