Codebase list libmawk / 30b66529-447f-407d-a34b-b48ac0e29c37/upstream tools / unwarn_all.sh
30b66529-447f-407d-a34b-b48ac0e29c37/upstream

Tree @30b66529-447f-407d-a34b-b48ac0e29c37/upstream (Download .tar.gz)

unwarn_all.sh @30b66529-447f-407d-a34b-b48ac0e29c37/upstream

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 {} \;