diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-01-03 21:22:45 -0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-13 22:46:50 +0100 |
commit | 81157d23749f6ee1feef35a04fa9cc989ebc01eb (patch) | |
tree | c88698aee7799eb05b0bb6ae1f60704258751ea3 /examples/widgets/widgets/spinboxes/window.cpp | |
parent | d19eef3bbb330d74caade0da32e85034c3e5c69e (diff) |
Use the QMAKE_CXXFLAGS_WARN_ON variable for setting -Werror
This would mean we don't pass -Werror when under CONFIG += warn_off.
However, that's not the main goal. The main goal of this change is to
have -Werror appear *after* -Wall -Wextra.
With some compilers, like Clang, this is necessary to have the
-Wno-error=foo options work properly. For example, if the -Wfoo
warning gets enabled by -Wall, Clang will treat it as an error if the
arguments appear in the following order:
-Werror -Wno-error=foo -Wall
But not if they appear in this order:
-Wall -Werror -Wno-error=foo
Change-Id: I38c820bffc8277d909391e9bf557db5347836b9c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'examples/widgets/widgets/spinboxes/window.cpp')
0 files changed, 0 insertions, 0 deletions