summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qprocess_and_guieventloop
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-11-29 12:38:51 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-11-29 17:08:46 +0000
commit1e303601a7355fb8282f0fcc3a8c4e86de944448 (patch)
tree973c22f9efa64bcc04be12443a4a25c3d2a2272d /tests/auto/other/qprocess_and_guieventloop
parent6aa2d49d5f98d8e23a32555a45c58dc4c7c4bb69 (diff)
Fix warnings in tests (MinGW/MSCV)
tst_qtcpsocket.cpp:606:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] tst_qtcpsocket.cpp:670:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] tst_qfile.cpp(2661): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) tst_qarraydata.cpp(760): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) main.cpp:40:33: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] Change-Id: I80ccef29b71af6a2c3d45a79aedaeb37f49bba72 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'tests/auto/other/qprocess_and_guieventloop')
-rw-r--r--tests/auto/other/qprocess_and_guieventloop/write-read-write/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/other/qprocess_and_guieventloop/write-read-write/main.cpp b/tests/auto/other/qprocess_and_guieventloop/write-read-write/main.cpp
index 46002dd326..5e75f7db3c 100644
--- a/tests/auto/other/qprocess_and_guieventloop/write-read-write/main.cpp
+++ b/tests/auto/other/qprocess_and_guieventloop/write-read-write/main.cpp
@@ -37,7 +37,9 @@ int main(int, char **argv)
fflush(stdout);
// wait for a newline
- fgets(buf, sizeof buf, stdin);
+ const char *result = fgets(buf, sizeof buf, stdin);
+ if (result != buf)
+ return -1;
puts(msg);
fflush(stdout);