... 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>
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