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:
Orgad Shaneh
2015-03-02 10:00:52 +02:00
committed by Orgad Shaneh
parent ebfc0c2823
commit 79525981dc
8 changed files with 8 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ TARGET = leak2
CONFIG += debug
win32-msvc*:QMAKE_CXXFLAGS += -w44996
QT += core
macx:CONFIG -= app_bundle

View File

@@ -7,6 +7,6 @@ QT += core
macx:CONFIG -= app_bundle
win32-msvc*:QMAKE_CXXFLAGS += -w4996
win32-msvc*:QMAKE_CXXFLAGS += -w44996
SOURCES += main.cpp

View File

@@ -28,8 +28,6 @@
**
****************************************************************************/
#pragma GCC diagnostic ignored "-Wuninitialized"
int main()
{
int i;

View File

@@ -2,7 +2,8 @@ TEMPLATE = app
TARGET = syscall
CONFIG += debug
QMAKE_CXXFLAGS = -O0
win32-msvc*:QMAKE_CXXFLAGS += -w44700
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
QT += core

View File

@@ -3,6 +3,7 @@ import qbs
QtcAutotest {
type: ["application"] // Not to be executed directly by autotest-runner
name: "Memcheck " + testName + " autotest"
cpp.warningLevel: "none"
property string testName
targetName: testName // Test runner hardcodes the names of the executables
destinationDirectory: project.buildDirectory + '/'

View File

@@ -3,7 +3,7 @@ TARGET = uninit1
CONFIG += debug console
CONFIG -= qt
win32-msvc*:QMAKE_CXXFLAGS += -w4700
win32-msvc*:QMAKE_CXXFLAGS += -w44700
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
macx:CONFIG -= app_bundle

View File

@@ -3,7 +3,7 @@ TARGET = uninit2
CONFIG += debug console
CONFIG -= qt
win32-msvc*:QMAKE_CXXFLAGS += -w4700
win32-msvc*:QMAKE_CXXFLAGS += -w44700
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
macx:CONFIG -= app_bundle

View File

@@ -3,7 +3,7 @@ TARGET = uninit3
CONFIG += debug console
CONFIG -= qt
win32-msvc*:QMAKE_CXXFLAGS += -w4700
win32-msvc*:QMAKE_CXXFLAGS += -w44700
else:QMAKE_CXXFLAGS = -O0 -Wno-uninitialized
macx:CONFIG -= app_bundle