Commit 79525981 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Tests: Refix MSVC warnings for valgrind tests

Fix in 5a5acd66

 was incomplete.

Change-Id: I36a0666d2a6a8ccb514ebf612fbac2eded150102
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent ebfc0c28
......@@ -3,6 +3,7 @@ TARGET = leak2
CONFIG += debug
win32-msvc*:QMAKE_CXXFLAGS += -w44996
QT += core
macx:CONFIG -= app_bundle
......
......@@ -7,6 +7,6 @@ QT += core
macx:CONFIG -= app_bundle
win32-msvc*:QMAKE_CXXFLAGS += -w4996
win32-msvc*:QMAKE_CXXFLAGS += -w44996
SOURCES += main.cpp
......@@ -28,8 +28,6 @@
**
****************************************************************************/
#pragma GCC diagnostic ignored "-Wuninitialized"
int main()
{
int i;
......
......@@ -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
......
......@@ -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 + '/'
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment