]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix clang build not seeing some libc prototypes throwing build warnings
authorMichael Jerris <mike@jerris.com>
Tue, 12 May 2015 04:37:03 +0000 (23:37 -0500)
committerBrian West <brian@freeswitch.org>
Tue, 12 May 2015 04:37:49 +0000 (23:37 -0500)
libs/spandsp/configure.ac

index 305c75a53321bf9470d0eb7c859a5d299d736c4b..412caa203f99756ecb86683d5e0647965765d635 100644 (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