[Qt-creator] QMAKE_CXXFLAGS += -Wno-multichar doesn't work on Mac

Stephen Chu stephen at ju-ju.com
Sat Mar 19 03:33:22 CET 2011


On 3/18/2011 5:40 PM, variadic.template wrote:
> The trick is to get the -Wno-*-flags behind the -Wall-flag that gets added
> by the spec-file, i think. This can be achieved by the
> QMAKE_CFLAGS_WARN_ON/
> QMAKE_CFLAGS_WARN_OFF-variables within the pro-file. Worked for me on
> Mac.
>

It works! I added the option to QMAKE_CXXFLAGS_WARN_ON and it does add 
to the g++ command line after -Wall. Thank you so much.



More information about the Qt-creator-old mailing list