From 35a75a6a82664d011f81ad8ac6a447f17fe31e9e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 11 May 2015 23:37:03 -0500 Subject: [PATCH] fix clang build not seeing some libc prototypes throwing build warnings --- libs/spandsp/configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) 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