Append -W* configure flags to QMAKE_C*FLAGS_WARN_ON
... instead of adding them to all C*FLAGS. This makes it possible to pass -Wno-warning-name to configure to disable certain warnings enabled by default (which didn't work previously). This also has the added benefit that only projects that have CONFIG+=warn_on will get the extra warning flags. Change-Id: I7bbc100155e02e7ccb9ac3be14bd8f585b7bc39b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>bb10
parent
d304b3a5bb
commit
9c4547eea3
|
|
@ -7410,9 +7410,9 @@ fi
|
|||
|
||||
if [ '!' -z "$W_FLAGS" ]; then
|
||||
# add the user defined warning flags
|
||||
QMakeVar add QMAKE_CFLAGS "$W_FLAGS"
|
||||
QMakeVar add QMAKE_CXXFLAGS "$W_FLAGS"
|
||||
QMakeVar add QMAKE_OBJECTIVE_CFLAGS "$W_FLAGS"
|
||||
QMakeVar add QMAKE_CFLAGS_WARN_ON "$W_FLAGS"
|
||||
QMakeVar add QMAKE_CXXFLAGS_WARN_ON "$W_FLAGS"
|
||||
QMakeVar add QMAKE_OBJECTIVE_CFLAGS_WARN_ON "$W_FLAGS"
|
||||
fi
|
||||
|
||||
# turn off exceptions for the compilers that support it
|
||||
|
|
|
|||
Loading…
Reference in New Issue