diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-10 14:39:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-10 16:32:22 +0300 |
commit | 3504545ff8dc818d08ac9526589b981a9a21c7a6 (patch) | |
tree | 13033d4b30c944202ac5d2a737d4a7173089e0ac /src/test/testlauncher.cpp | |
parent | 9715494e4145243feb068a40a6d7e58baca814d1 (diff) | |
download | plus-3504545ff8dc818d08ac9526589b981a9a21c7a6.tar.gz plus-3504545ff8dc818d08ac9526589b981a9a21c7a6.tar.bz2 plus-3504545ff8dc818d08ac9526589b981a9a21c7a6.tar.xz plus-3504545ff8dc818d08ac9526589b981a9a21c7a6.zip |
Add pragma for clang for disable some warnings.
Diffstat (limited to 'src/test/testlauncher.cpp')
-rw-r--r-- | src/test/testlauncher.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 2b86a3eca..8909b29ee 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -151,6 +151,9 @@ int TestLauncher::testRescale() const return 0; } +PRAGMACLANG(GCC diagnostic push) +PRAGMACLANG(GCC diagnostic ignored "-Wunused-result") + int TestLauncher::testFps() { timeval start; @@ -279,6 +282,7 @@ int TestLauncher::testFps3() sleep(1); return 0; } +PRAGMACLANG(GCC diagnostic pop) int TestLauncher::testBatches() { @@ -371,6 +375,9 @@ int TestLauncher::testTextures() return 0; } +PRAGMACLANG(GCC diagnostic push) +PRAGMACLANG(GCC diagnostic ignored "-Wunused-result") + int TestLauncher::testInternal() { timeval start; @@ -421,6 +428,8 @@ int TestLauncher::testInternal() return 0; } +PRAGMACLANG(GCC diagnostic pop) + int TestLauncher::testDye() { SDL_RWops *rw = MPHYSFSRWOPS_openRead( |