summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlocalsocket
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-03-08 10:47:51 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-11 18:49:25 (GMT)
commita5857ca37d0ad49b7b944b92d58d3e519b253c6c (patch)
treea44a3197b047e5fc1f9eee68f8e82157e8721493 /tests/auto/qlocalsocket
parentdf2cc57a592e11b464ec21ea530dad33f6fbee3e (diff)
downloadQt-a5857ca37d0ad49b7b944b92d58d3e519b253c6c.zip
Qt-a5857ca37d0ad49b7b944b92d58d3e519b253c6c.tar.gz
Qt-a5857ca37d0ad49b7b944b92d58d3e519b253c6c.tar.bz2
Fix warnings in tests (CLANG).
- Statement has no effect - Adding int to string - Unspecified behavior when comparing character literals. Change-Id: Ie9cb9a1036b5cf5c62890685c60dee4af1ce7148 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/qlocalsocket')
-rw-r--r--tests/auto/qlocalsocket/example/server/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlocalsocket/example/server/main.cpp b/tests/auto/qlocalsocket/example/server/main.cpp
index 54b8789..d20b627 100644
--- a/tests/auto/qlocalsocket/example/server/main.cpp
+++ b/tests/auto/qlocalsocket/example/server/main.cpp
@@ -72,7 +72,7 @@ public:
if (n == 0)
break;
qDebug() << "Read" << str;
- if ("exit" == str)
+ if (!qstrcmp("exit", str))
qApp->quit();
if (socket->write(str, 100) < 0) {