subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1480080 - /subversion/trunk/build/ac-macros/compiler.m4
Date Tue, 07 May 2013 21:11:27 GMT
Author: brane
Date: Tue May  7 21:11:27 2013
New Revision: 1480080

URL: http://svn.apache.org/r1480080
Log:
Latest clang does not emit errors about unknown warning options,
but it does spam the compile output with warnings. Silence those
warnings.

* build/ac-macros/compiler.m4
  (SVN_CC_MODE_SETUP): Add -Wno-unknown-warning-option to default C flags.
  (SVN_CXX_MODE_SETUP): Likewise for default C++ flags.

Modified:
    subversion/trunk/build/ac-macros/compiler.m4

Modified: subversion/trunk/build/ac-macros/compiler.m4
URL: http://svn.apache.org/viewvc/subversion/trunk/build/ac-macros/compiler.m4?rev=1480080&r1=1480079&r2=1480080&view=diff
==============================================================================
--- subversion/trunk/build/ac-macros/compiler.m4 (original)
+++ subversion/trunk/build/ac-macros/compiler.m4 Tue May  7 21:11:27 2013
@@ -66,6 +66,10 @@ AC_DEFUN([SVN_CC_MODE_SETUP],
     ])
   ])
 
+  dnl clang does not (always?) error out on unknown compiler
+  dnl options so silence the diagnostics emitted for warning options
+  SVN_CFLAGS_ADD_IFELSE([-Wno-unknown-warning-option])
+
   CMODEFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS_KEEP"
   AC_SUBST(CMODEFLAGS)
@@ -82,6 +86,10 @@ AC_DEFUN([SVN_CXX_MODE_SETUP],
                 dnl g++ and clang++
   SVN_CXXFLAGS_ADD_IFELSE([-std=c++98])
 
+  dnl clang++ does not (always?) error out on unknown compiler
+  dnl options so silence the diagnostics emitted for warning options
+  SVN_CXXFLAGS_ADD_IFELSE([-Wno-unknown-warning-option])
+
   CXXMODEFLAGS="$CXXFLAGS"
   CXXFLAGS="$CXXFLAGS_KEEP"
   AC_SUBST(CXXMODEFLAGS)



Mime
View raw message