diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-04 16:18:46 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-01-04 19:17:28 +0100 |
commit | 3a1c46ff751a96dfdc721190a93be3954929725e (patch) | |
tree | b4b60c322545aaee22506f1071048ad5a604b123 /tests/unit | |
parent | 225e1516f9cc5d2318e9a9cd7b84b69b0f150e43 (diff) | |
download | tigervnc-3a1c46ff751a96dfdc721190a93be3954929725e.tar.gz tigervnc-3a1c46ff751a96dfdc721190a93be3954929725e.zip |
Explicitly mark unused parameters
This allows us to separate accidentally unused, from explicitly unused
parameters, which allows us to turn on such checks in the compiler.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/conv.cxx | 2 | ||||
-rw-r--r-- | tests/unit/convertlf.cxx | 2 | ||||
-rw-r--r-- | tests/unit/emulatemb.cxx | 2 | ||||
-rw-r--r-- | tests/unit/gesturehandler.cxx | 2 | ||||
-rw-r--r-- | tests/unit/hostport.cxx | 2 | ||||
-rw-r--r-- | tests/unit/pixelformat.cxx | 2 | ||||
-rw-r--r-- | tests/unit/unicode.cxx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/conv.cxx b/tests/unit/conv.cxx index b14f8987..5696c149 100644 --- a/tests/unit/conv.cxx +++ b/tests/unit/conv.cxx @@ -291,7 +291,7 @@ static void doTests(const rfb::PixelFormat &dstpf, } } -int main(int argc, char **argv) +int main(int /*argc*/, char** /*argv*/) { rfb::PixelFormat dstpf, srcpf; diff --git a/tests/unit/convertlf.cxx b/tests/unit/convertlf.cxx index b85b270c..4dff9098 100644 --- a/tests/unit/convertlf.cxx +++ b/tests/unit/convertlf.cxx @@ -84,7 +84,7 @@ static void testCRLF(const char* input, const char* expected) rfb::strFree(output); } -int main(int argc, char** argv) +int main(int /*argc*/, char** /*argv*/) { testLF("", ""); testLF("no EOL", "no EOL"); diff --git a/tests/unit/emulatemb.cxx b/tests/unit/emulatemb.cxx index 927f3e48..7dfc2541 100644 --- a/tests/unit/emulatemb.cxx +++ b/tests/unit/emulatemb.cxx @@ -461,7 +461,7 @@ void testDragAndRelease() printf("OK\n"); } -int main(int argc, char** argv) +int main(int /*argc*/, char** /*argv*/) { testDisabledOption(); diff --git a/tests/unit/gesturehandler.cxx b/tests/unit/gesturehandler.cxx index 12d83556..bc39c24c 100644 --- a/tests/unit/gesturehandler.cxx +++ b/tests/unit/gesturehandler.cxx @@ -1233,7 +1233,7 @@ void testIgnore() testIgnoreAfterGesture(); } -int main(int argc, char** argv) +int main(int /*argc*/, char** /*argv*/) { testOneTap(); testTwoTap(); diff --git a/tests/unit/hostport.cxx b/tests/unit/hostport.cxx index 6ca5df8f..93ebc4c7 100644 --- a/tests/unit/hostport.cxx +++ b/tests/unit/hostport.cxx @@ -46,7 +46,7 @@ static void doTest(const char* hostAndPort, rfb::strFree(host); } -int main(int argc, char** argv) +int main(int /*argc*/, char** /*argv*/) { doTest(":5", "localhost", 5905); diff --git a/tests/unit/pixelformat.cxx b/tests/unit/pixelformat.cxx index 6ab736b8..a2ca50d0 100644 --- a/tests/unit/pixelformat.cxx +++ b/tests/unit/pixelformat.cxx @@ -183,7 +183,7 @@ void is888Tests() printf("\n"); } -int main(int argc, char** argv) +int main(int /*argc*/, char** /*argv*/) { sanityTests(); is888Tests(); diff --git a/tests/unit/unicode.cxx b/tests/unit/unicode.cxx index aa2af85b..0cd0f077 100644 --- a/tests/unit/unicode.cxx +++ b/tests/unit/unicode.cxx @@ -85,7 +85,7 @@ struct _utf8utf16 utf8utf16[] = { #define ARRAY_SIZE(a) (sizeof(a)/sizeof(*a)) -int main(int argc, char** argv) +int main(int /*argc*/, char** /*argv*/) { int failures; size_t i; |