summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-06-23 06:00:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:18:56 -0500
commitae412ebe71cc77b7b19b75015c2bd910039d3d1b (patch)
treef11e07d647238ea4beb88bb8e6b05da8e02dffc4
parentd2864af2e73b87ce20e1af1967e81db2f853e536 (diff)
downloadsamba-ae412ebe71cc77b7b19b75015c2bd910039d3d1b.tar.gz
samba-ae412ebe71cc77b7b19b75015c2bd910039d3d1b.tar.bz2
samba-ae412ebe71cc77b7b19b75015c2bd910039d3d1b.zip
r16483: Turn off some useless MIPSPro warnings be default.
(This used to be commit a22bf28bcab6ef3c4addaf57fdeb2020625ead0e)
-rw-r--r--source3/configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index bf1acefb0c..d285647df3 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -557,10 +557,18 @@ dnl Add #include for broken IRIX header files
*irix6*)
AC_ADD_INCLUDE(<standards.h>)
if test x"$ac_cv_prog_gcc" != x"yes" ; then
+ dnl Fix sensible defaults for MIPSPro compilers. The
+ dnl error numbers are valid for the 7.3 compilers,
+ dnl hopefully also valid for the 7.4 series.
+ dnl
dnl Bugzilla 3801. Force an error on warning 1035
dnl so we don't incorrectly detect stdint.h. This
dnl warning is emitted for #error directives.
CFLAGS="$CFLAGS -diag_error 1035"
+ dnl 1209: Controlling expression is constant
+ dnl 1174: Function foo declared but never referenced
+ dnl 3201: Parameter foo was never referenced
+ CFLAGS="$CFLAGS -woff 1209,1174,3201"
fi
;;
esac