You can extend the default warning set in a platform-independent way but adding this to your PRO file:
CONFIG += warn_on
CONFIG += warn_on
To copy to clipboard, switch view to plain text mode
and suppress the vast majority (not recommended):
CONFIG += warn_off
CONFIG += warn_off
To copy to clipboard, switch view to plain text mode
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:
win32-msvc {
QMAKE_CFLAGS += /blah
QMAKE_CXX_FLAGS == /blah
}
win32-g++ {
QMAKE_CFLAGS += --blah
QMAKE_CXX_FLAGS == --blah
}
win32-msvc {
QMAKE_CFLAGS += /blah
QMAKE_CXX_FLAGS == /blah
}
win32-g++ {
QMAKE_CFLAGS += --blah
QMAKE_CXX_FLAGS == --blah
}
To copy to clipboard, switch view to plain text mode
Bookmarks