Codebase list libmawk / 0718135d-034f-4c7d-a50d-81acb9b0d835/main tools / unwarn_all.sh
0718135d-034f-4c7d-a50d-81acb9b0d835/main

Tree @0718135d-034f-4c7d-a50d-81acb9b0d835/main (Download .tar.gz)

unwarn_all.sh @0718135d-034f-4c7d-a50d-81acb9b0d835/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 {} \;