I added this to my .pro
file but I stil get warnings :
QMAKE_CXXFLAGS_WARN_OFF = -Wunused-parameter
Use QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
,
because the flags in QMAKE_CXX_FLAGS will always before QMAKE_CXXFLAGS_WARN_ON, and QMAKE_CXXFLAGS_WARN_ON contains the flag -Wall. This means your flag will be overwrite by flag -Wall.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With