Codebase list libmawk / debian/1.0.2-1 tools / unwarn_all.sh
debian/1.0.2-1

Tree @debian/1.0.2-1 (Download .tar.gz)

unwarn_all.sh @debian/1.0.2-1raw · history · blame

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