Turn off some useless MIPSPro warnings be default.
authorjpeach <jpeach@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Fri, 23 Jun 2006 06:00:16 +0000 (06:00 +0000)
committerjpeach <jpeach@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Fri, 23 Jun 2006 06:00:16 +0000 (06:00 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@16483 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/configure.in

index bf1acefb0cf2b6c7224fc51287ca93ec2558c5cb..d285647df377dafa7cefa3b5c17c238d8d6a54fd 100644 (file)
@@ -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