fix clang build not seeing some libc prototypes throwing build warnings

This commit is contained in:
Michael Jerris 2015-05-11 23:37:03 -05:00 committed by Brian West
parent b156cbd604
commit 35a75a6a82
1 changed files with 7 additions and 0 deletions

View File

@ -464,6 +464,13 @@ intel)
fi
COMP_VENDOR_LDFLAGS=
;;
clang*)
COMP_VENDOR_CFLAGS="-D_XOPEN_SOURCE=700 -std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
if test x"$ac_cv_gcc_unused_but_set_variable" = xyes ; then
COMP_VENDOR_CFLAGS="-Wunused-but-set-variable $COMP_VENDOR_CFLAGS"
fi
COMP_VENDOR_LDFLAGS=
;;
*)
COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
if test x"$ac_cv_gcc_unused_but_set_variable" = xyes ; then