Title: [101784] trunk
- Revision
- 101784
- Author
- [email protected]
- Date
- 2011-12-02 04:34:11 -0800 (Fri, 02 Dec 2011)
Log Message
2011-12-02 Alejandro G. Castro <[email protected]>
[GTK] Improve C++0x compat warnings check
https://bugs.webkit.org/show_bug.cgi?id=73642
Reviewed by Martin Robinson.
* configure.ac:
Modified Paths
Diff
Modified: trunk/ChangeLog (101783 => 101784)
--- trunk/ChangeLog 2011-12-02 12:13:55 UTC (rev 101783)
+++ trunk/ChangeLog 2011-12-02 12:34:11 UTC (rev 101784)
@@ -1,3 +1,12 @@
+2011-12-02 Alejandro G. Castro <[email protected]>
+
+ [GTK] Improve C++0x compat warnings check
+ https://bugs.webkit.org/show_bug.cgi?id=73642
+
+ Reviewed by Martin Robinson.
+
+ * configure.ac:
+
2011-12-01 Nayan Kumar K <[email protected]>
[GTK] Add compilation options to enable/disable Accelerated Compositing and to choose texture mapper implementation.
Modified: trunk/configure.ac (101783 => 101784)
--- trunk/configure.ac 2011-12-02 12:13:55 UTC (rev 101783)
+++ trunk/configure.ac 2011-12-02 12:34:11 UTC (rev 101784)
@@ -101,10 +101,18 @@
# Disable C++0x compat warnings for GCC >= 4.6.0 until we build
# cleanly with that.
-if test "$CXX" = "g++"; then
- CXX_VERSION=`$CXX -dumpversion`
- AX_COMPARE_VERSION([$CXX_VERSION],[ge],[4.6.0],CXXFLAGS="$CXXFLAGS -Wno-c++0x-compat")
-fi
+AC_LANG_PUSH(C++)
+TMPCXXFLAGS=$CXXFLAGS
+CXXFLAGS="-Wall -Werror"
+AC_MSG_CHECKING([if we have to disable C++0x compat warnings for GCC >= 4.6.0])
+AC_TRY_COMPILE([
+namespace std {
+ class nullptr_t { };
+}
+extern std::nullptr_t nullptr;
+], [return 0;],
+CXXFLAGS="$TMPCXXFLAGS", CXXFLAGS="$TMPCXXFLAGS -Wno-c++0x-compat")
+AC_LANG_POP(C++)
# pthread (not needed on Windows)
if test "$os_win32" = "no"; then
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes