Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable a compiler-warning project-wide in Qt Creator (when using MSVC)

I want to disable a particular warning, such as C++ warning C4018: '<' : signed/unsigned mismatch, but project-wide. What do I need to put in my .pro file to achieve that effect?

like image 489
Phlucious Avatar asked Aug 26 '13 23:08

Phlucious


1 Answers

Add the following line to your PRO file:

QMAKE_CXXFLAGS += /wd4996
like image 59
vahancho Avatar answered Oct 14 '22 08:10

vahancho