fix clang build not seeing some libc prototypes throwing build warnings
This commit is contained in:
parent
b156cbd604
commit
35a75a6a82
|
@ -464,6 +464,13 @@ intel)
|
||||||
fi
|
fi
|
||||||
COMP_VENDOR_LDFLAGS=
|
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"
|
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
|
if test x"$ac_cv_gcc_unused_but_set_variable" = xyes ; then
|
||||||
|
|
Loading…
Reference in New Issue