]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
mingw fix: avoid "unused var" warning.
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Jul 2017 17:12:33 +0000 (13:12 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 7 Jul 2017 14:54:24 +0000 (10:54 -0400)
This is a backport of 19615bce64cd381a925bc3910120ac39ca918e7c to
fix bug 22838.

changes/bug22838_028 [new file with mode: 0644]
src/test/test_switch_id.c

diff --git a/changes/bug22838_028 b/changes/bug22838_028
new file mode 100644 (file)
index 0000000..1d0a4fb
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
+    - Backport a fix for an "unused variable" warning that appeared
+      in some versions of mingw. Fixes bug 22838; bugfix on
+      0.2.8.1-alpha.
+
index 322f5bdc7ac4f36907d11b9b96217af4d5e2f939..e12205bb2e7cf8f1c7a0f88cef64fb65a76485cd 100644 (file)
@@ -79,6 +79,7 @@ main(int argc, char **argv)
 #if defined(_WIN32)
   (void) argc;
   (void) argv;
+  (void) which_test;
 
   fprintf(stderr, "This test is not supported on your OS.\n");
   return 77;