There's QMAKE_CXXFLAGS and "CONFIG += no_warn" (or was it "CONFIG -= warn_on"?).