How to suppress warnings in Qt Creator
问题 I'm wondering if it is possible to suppress compiler specific warnings in Qt-Creator. My g++-4.5 prints: warning: enumeral and non-enumeral type in conditional expression I would like to get rid of it, because it's very annoying. Ubuntu 11.04 x64 g++-4.5 QtCreator 2.01 Qt 4.7 Thank you! 回答1: You need to use this: QMAKE_CXXFLAGS += -Wno-enum-compare if you get a warning that ends in -Wenum-compare , for example. Also, note that some warnings cannot be suppressed as per the GCC documentation