[OE-core] [RFC PATCH 1/4] qt4: fix compile error in Qt 4.8.0 with gcc 4.6

Khem Raj raj.khem at gmail.com
Thu Feb 9 21:19:22 UTC 2012


On Thu, Feb 9, 2012 at 9:57 AM, Paul Eggleton
<paul.eggleton at linux.intel.com> wrote:
> +Fix the following error during compiling with gcc 4.6:
> +
> +./wtf/NullPtr.h:48:1: error: identifier 'nullptr' will become a keyword in C++0x [-Werror=c++0x-compat]
> +
> +Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
> +
> +Upstream-Status: Pending
> +
> +--- qt-everywhere-opensource-src-4.8.0.orig/src/3rdparty/webkit/Source/WebKit.pri
> ++++ qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/WebKit.pri
> +@@ -102,8 +102,6 @@ CONFIG -= warn_on
> +
> + # Treat warnings as errors on x86/Linux/GCC
> + linux-g++* {
> +-    isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
> +-

since there is a namespace conflict that should be fixed IMO removing
Wrror is not quite the right
thing to do here IMO. Its a workaround but probably upstream wont
accept it. So change
nullptr here to something like qt_nullptr in source tree




More information about the Openembedded-core mailing list