Codebase list libmawk / 90d5d2b3-585a-4bfd-a55b-70221f790edb/main tools / unwarn_all.sh
90d5d2b3-585a-4bfd-a55b-70221f790edb/main

Tree @90d5d2b3-585a-4bfd-a55b-70221f790edb/main (Download .tar.gz)

unwarn_all.sh @90d5d2b3-585a-4bfd-a55b-70221f790edb/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 {} \;