Title: [145560] trunk
Revision
145560
Author
zandober...@gmail.com
Date
2013-03-12 10:40:40 -0700 (Tue, 12 Mar 2013)

Log Message

[GTK] 'unrecognized command line option "-Wno-c++11-extensions"' warning reported when using gcc
https://bugs.webkit.org/show_bug.cgi?id=111936

Reviewed by Martin Robinson.

* Source/autotools/SetupCompilerFlags.m4: Only use the -Wno-c++11-extensions warning when building
with Clang as GCC does not support the warning just yet. Also enhance the comment about using libstdc++
as the standard C++ library when compiling with Clang.

Modified Paths

Diff

Modified: trunk/ChangeLog (145559 => 145560)


--- trunk/ChangeLog	2013-03-12 17:37:33 UTC (rev 145559)
+++ trunk/ChangeLog	2013-03-12 17:40:40 UTC (rev 145560)
@@ -1,5 +1,16 @@
 2013-03-12  Zan Dobersek  <zdober...@igalia.com>
 
+        [GTK] 'unrecognized command line option "-Wno-c++11-extensions"' warning reported when using gcc
+        https://bugs.webkit.org/show_bug.cgi?id=111936
+
+        Reviewed by Martin Robinson.
+
+        * Source/autotools/SetupCompilerFlags.m4: Only use the -Wno-c++11-extensions warning when building
+        with Clang as GCC does not support the warning just yet. Also enhance the comment about using libstdc++
+        as the standard C++ library when compiling with Clang.
+
+2013-03-12  Zan Dobersek  <zdober...@igalia.com>
+
         [GTK] Set up the libPlatformGtk.la library
         https://bugs.webkit.org/show_bug.cgi?id=111738
 

Modified: trunk/Source/autotools/SetupCompilerFlags.m4 (145559 => 145560)


--- trunk/Source/autotools/SetupCompilerFlags.m4	2013-03-12 17:37:33 UTC (rev 145559)
+++ trunk/Source/autotools/SetupCompilerFlags.m4	2013-03-12 17:40:40 UTC (rev 145560)
@@ -1,15 +1,16 @@
 # Use C99 as the language standard for C code.
 CFLAGS="$CFLAGS -std=c99"
-# Do not warn about C++11 incompatibilities and extensions.
-CXXFLAGS="$CXXFLAGS -Wno-c++11-compat -Wno-c++11-extensions"
+# Do not warn about C++11 incompatibilities.
+CXXFLAGS="$CXXFLAGS -Wno-c++11-compat"
 
 # Clang requires suppression of unused arguments warning.
 if test "$CC" = "clang"; then
     CFLAGS="$CFLAGS -Qunused-arguments"
 fi
-# libstdc++ is at the moment the only option as the C++ standard library.
+# -Wno-c++11-extensions, currently only usable with Clang, suppresses warnings of C++11 extensions in use.
+# libstdc++ is at the moment the only option as the C++ standard library when compiling with Clang.
 if test "$CXX" = "clang++"; then
-    CXXFLAGS="$CXXFLAGS -stdlib=libstdc++ -Qunused-arguments"
+    CXXFLAGS="$CXXFLAGS -Wno-c++11-extensions -stdlib=libstdc++ -Qunused-arguments"
 fi
 
 if test "$host_cpu" = "sh4"; then
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to