From: Michael Jerris Date: Tue, 12 May 2015 04:37:03 +0000 (-0500) Subject: fix clang build not seeing some libc prototypes throwing build warnings X-Git-Tag: v1.4.19~6^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a75a6a82664d011f81ad8ac6a447f17fe31e9e;p=thirdparty%2Ffreeswitch.git fix clang build not seeing some libc prototypes throwing build warnings --- diff --git a/libs/spandsp/configure.ac b/libs/spandsp/configure.ac index 305c75a533..412caa203f 100644 --- a/libs/spandsp/configure.ac +++ b/libs/spandsp/configure.ac @@ -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