Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (35 sloc) 2.81 KB

(C++) Compile warning

Warning emitted by the compiler, but does not prevent program execution. A compile error does prevent program execution.

Qt Creator How to add extra warnings in Qt Creator?

In the project file, add the following line:

QMAKE_CXXFLAGS += -Wextra

Qt Creator How to add the compile warnings of 'Effective C++' by Scott Meyers in Qt Creator?

In the project file, add the following line:

QMAKE_CXXFLAGS += -Weffc++

Qt Creator How to let compile warnings be treated like compile errors in Qt Creator?

In the project file, add the following line:

QMAKE_CXXFLAGS += -Werror

 

Advice

References

You can’t perform that action at this time.