Codebase list libmawk / f694964d-46cb-42e8-af1b-824470af934a/main tools / unwarn_all.sh
f694964d-46cb-42e8-af1b-824470af934a/main

Tree @f694964d-46cb-42e8-af1b-824470af934a/main (Download .tar.gz)

unwarn_all.sh @f694964d-46cb-42e8-af1b-824470af934a/mainraw · 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 {} \;