aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-01 13:38:36 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-11 10:11:53 -0400
commit9bbd6502f09dd46179e7ca4a713f2ae24bfa79ef (patch)
tree5fe20b810648c465df4779132beebc0fc61412b8 /src/test/test_microdesc.c
parentad16c5528663489000ee3a7454a9bbff2e41f7f0 (diff)
downloadtor-9bbd6502f09dd46179e7ca4a713f2ae24bfa79ef.tar.gz
tor-9bbd6502f09dd46179e7ca4a713f2ae24bfa79ef.zip
Use autoconf, not gcc version, to decide which warnings we have
This gives more accurate results under Clang, which can only help us detect more warnings in more places. Fixes bug 19216; bugfix on 0.2.0.1-alpha
Diffstat (limited to 'src/test/test_microdesc.c')
-rw-r--r--src/test/test_microdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_microdesc.c b/src/test/test_microdesc.c
index 28c4f0706c..91884e692e 100644
--- a/src/test/test_microdesc.c
+++ b/src/test/test_microdesc.c
@@ -490,7 +490,7 @@ test_md_generate(void *arg)
routerinfo_free(ri);
}
-#if GCC_VERSION >= 406
+#ifdef HAVE_CFLAG_WOVERLENGTH_STRINGS
DISABLE_GCC_WARNING(overlength-strings)
/* We allow huge string constants in the unit tests, but not in the code
* at large. */
@@ -650,7 +650,7 @@ static const char MD_PARSE_TEST_DATA[] =
"id rsa1024 2A8wYpHxnkKJ92orocvIQBzeHlE\n"
"p6 allow 80\n"
;
-#if GCC_VERSION >= 406
+#ifdef HAVE_CFLAG_WOVERLENGTH_STRINGS
ENABLE_GCC_WARNING(overlength-strings)
#endif