]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: restore C89 compatibility of CurlTests.c
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 11 May 2019 20:02:39 +0000 (22:02 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 12 May 2019 07:23:34 +0000 (09:23 +0200)
I broke it in d1b5cf830bfe169745721b21245d2217d2c2453e and
97de97daefc2ed084c91eff34af2426f2e55e134.

Reported-by: Viktor Szakats
Ref: https://github.com/curl/curl/commit/97de97daefc2ed084c91eff34af2426f2e55e134#commitcomment-33499044
Closes https://github.com/curl/curl/pull/3868

CMake/CurlTests.c

index f7290c39813fb15a14c2ae6554ebb3b37735f2b4..07b516b4dae68d3548921c9adbb74fffdef7638b 100644 (file)
@@ -584,8 +584,8 @@ int fun2(int arg1, int arg2) {
 int
 main() {
   int res3 = c99_vmacro3(1, 2, 3);
-  (void)res3;
   int res2 = c99_vmacro2(1, 2);
+  (void)res3;
   (void)res2;
   return 0;
 }
@@ -607,8 +607,8 @@ int fun2(int arg1, int arg2) {
 int
 main() {
   int res3 = gcc_vmacro3(1, 2, 3);
-  (void)res3;
   int res2 = gcc_vmacro2(1, 2);
+  (void)res3;
   (void)res2;
   return 0;
 }