Add "-Werror-implicit-function-declaration" to CFLAGS when using gcc.

This commit is contained in:
osku 2006-03-17 11:36:16 +00:00
parent 43a21f6ed4
commit 9243694086

View file

@ -102,6 +102,12 @@ fi
# CFLAGS="$CFLAGS -std=c89 -ansi -pedantic -Wno-long-long"
#fi
# If using gcc, add some extra warning flags.
if test "$ac_cv_prog_gcc" = "yes"
then
CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
fi
case "$target_os" in
lin*)
CFLAGS="$CFLAGS -DUNIV_LINUX";;