forked from qt-creator/qt-creator
Tests: Refix MSVC warnings for valgrind tests
Fix in 5a5acd664e
was incomplete.
Change-Id: I36a0666d2a6a8ccb514ebf612fbac2eded150102
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ebfc0c2823
commit
79525981dc
@@ -3,6 +3,7 @@ TARGET = leak2
|
|||||||
|
|
||||||
CONFIG += debug
|
CONFIG += debug
|
||||||
|
|
||||||
|
win32-msvc*:QMAKE_CXXFLAGS += -w44996
|
||||||
QT += core
|
QT += core
|
||||||
|
|
||||||
macx:CONFIG -= app_bundle
|
macx:CONFIG -= app_bundle
|
||||||
|
@@ -7,6 +7,6 @@ QT += core
|
|||||||
|
|
||||||
macx:CONFIG -= app_bundle
|
macx:CONFIG -= app_bundle
|
||||||
|
|
||||||
win32-msvc*:QMAKE_CXXFLAGS += -w4996
|
win32-msvc*:QMAKE_CXXFLAGS += -w44996
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@@ -28,8 +28,6 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#pragma GCC diagnostic ignored "-Wuninitialized"
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@@ -2,7 +2,8 @@ TEMPLATE = app
|
|||||||
TARGET = syscall
|
TARGET = syscall
|
||||||
|
|
||||||
CONFIG += debug
|
CONFIG += debug
|
||||||
QMAKE_CXXFLAGS = -O0
|
win32-msvc*:QMAKE_CXXFLAGS += -w44700
|
||||||
|
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
|
||||||
|
|
||||||
QT += core
|
QT += core
|
||||||
|
|
||||||
|
@@ -3,6 +3,7 @@ import qbs
|
|||||||
QtcAutotest {
|
QtcAutotest {
|
||||||
type: ["application"] // Not to be executed directly by autotest-runner
|
type: ["application"] // Not to be executed directly by autotest-runner
|
||||||
name: "Memcheck " + testName + " autotest"
|
name: "Memcheck " + testName + " autotest"
|
||||||
|
cpp.warningLevel: "none"
|
||||||
property string testName
|
property string testName
|
||||||
targetName: testName // Test runner hardcodes the names of the executables
|
targetName: testName // Test runner hardcodes the names of the executables
|
||||||
destinationDirectory: project.buildDirectory + '/'
|
destinationDirectory: project.buildDirectory + '/'
|
||||||
|
@@ -3,7 +3,7 @@ TARGET = uninit1
|
|||||||
|
|
||||||
CONFIG += debug console
|
CONFIG += debug console
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
win32-msvc*:QMAKE_CXXFLAGS += -w4700
|
win32-msvc*:QMAKE_CXXFLAGS += -w44700
|
||||||
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
|
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
|
||||||
|
|
||||||
macx:CONFIG -= app_bundle
|
macx:CONFIG -= app_bundle
|
||||||
|
@@ -3,7 +3,7 @@ TARGET = uninit2
|
|||||||
|
|
||||||
CONFIG += debug console
|
CONFIG += debug console
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
win32-msvc*:QMAKE_CXXFLAGS += -w4700
|
win32-msvc*:QMAKE_CXXFLAGS += -w44700
|
||||||
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
|
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
|
||||||
|
|
||||||
macx:CONFIG -= app_bundle
|
macx:CONFIG -= app_bundle
|
||||||
|
@@ -3,7 +3,7 @@ TARGET = uninit3
|
|||||||
|
|
||||||
CONFIG += debug console
|
CONFIG += debug console
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
win32-msvc*:QMAKE_CXXFLAGS += -w4700
|
win32-msvc*:QMAKE_CXXFLAGS += -w44700
|
||||||
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
|
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
|
||||||
|
|
||||||
macx:CONFIG -= app_bundle
|
macx:CONFIG -= app_bundle
|
||||||
|
Reference in New Issue
Block a user