[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/release-0.2.8] mingw fix: avoid "unused var" warning.
commit ae756f251ffe155336deef0bb97643203d1cfa56
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Thu Jul 6 13:12:33 2017 -0400
mingw fix: avoid "unused var" warning.
This is a backport of 19615bce64cd381a925bc3910120ac39ca918e7c to
fix bug 22838.
---
changes/bug22838_028 | 5 +++++
src/test/test_switch_id.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/changes/bug22838_028 b/changes/bug22838_028
new file mode 100644
index 0000000..1d0a4fb
--- /dev/null
+++ b/changes/bug22838_028
@@ -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.
+
diff --git a/src/test/test_switch_id.c b/src/test/test_switch_id.c
index 322f5bd..e12205b 100644
--- a/src/test/test_switch_id.c
+++ b/src/test/test_switch_id.c
@@ -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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits