summaryrefslogtreecommitdiffstats
path: root/examples/gui/openglwindow/main.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-01-10 13:19:55 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-20 20:17:56 +0100
commit22f0dc4f893581f53d1f030587ae535128afccf8 (patch)
tree7f9a57be397c5af8ef5d3eed43a403e2d5138437 /examples/gui/openglwindow/main.cpp
parentd641792ff29cae3ef92bbc76f593e9262b4789ef (diff)
Loosen checks for Q_COMPILER_VARIADIC_MACROS
So far we did bind the definition of Q_COMPILER_VARIADIC_MACROS to C++11 (so gcc, clang will not define it in default gnu++98 standard). However, variadic macros are a feature of the gcc preprocessor since version 2.97, and are enabled in the default configurations on gcc, clang, icc. This might cause warnings and errors though if one enables additional warnings in gcc, clang (e.g. by -pedantic). Anyhow, as a precedent qglobal.h already relies on 'long long' ... The warning can be disabled by adding '-Wno-variadic-macros'. [ChangeLog][Compiler Specific Changes] Variadic macros are now enabled more liberally for gcc, clang, icc. If you have warnings (because you e.g. compile with -pedantic), disable them by -Wno-variadic-macros. Change-Id: Ie979b85809508ad70cab75e6981f20496429f463 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/gui/openglwindow/main.cpp')
0 files changed, 0 insertions, 0 deletions