Where do I change/select the compiler warning settings/options?
Printable View
Where do I change/select the compiler warning settings/options?
Hi, which IDE do you use?
Ginsengelf
Qt Creator 2.2.0 and 4.13.3.
You can extend the default warning set in a platform-independent way but adding this to your PRO file:
and suppress the vast majority (not recommended):Code:
CONFIG += warn_on
If you need something unusual then you can add options to QMAKE_CFLAGS and QMAKE_CXXFLAGS. Since these will be compiler specific you should make them scope specific, for example:Code:
CONFIG += warn_off
Code:
win32-msvc { QMAKE_CFLAGS += /blah QMAKE_CXX_FLAGS == /blah } win32-g++ { QMAKE_CFLAGS += --blah QMAKE_CXX_FLAGS == --blah }