diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-01 13:38:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-11 10:11:53 -0400 |
commit | 9bbd6502f09dd46179e7ca4a713f2ae24bfa79ef (patch) | |
tree | 5fe20b810648c465df4779132beebc0fc61412b8 /src/test/test_bt_cl.c | |
parent | ad16c5528663489000ee3a7454a9bbff2e41f7f0 (diff) | |
download | tor-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_bt_cl.c')
-rw-r--r-- | src/test/test_bt_cl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_bt_cl.c b/src/test/test_bt_cl.c index ec03cedd0a..95b4f48f11 100644 --- a/src/test/test_bt_cl.c +++ b/src/test/test_bt_cl.c @@ -28,7 +28,7 @@ int a_tangled_web(int x) NOINLINE; int we_weave(int x) NOINLINE; static void abort_handler(int s) NORETURN; -#if GCC_VERSION >= 601 +#ifdef HAVE_CFLAG_WNULL_DEREFERENCE DISABLE_GCC_WARNING(null-dereference) #endif int @@ -50,7 +50,7 @@ crash(int x) crashtype *= x; return crashtype; } -#if GCC_VERSION >= 601 +#ifdef HAVE_CFLAG_WNULL_DEREFERENCE ENABLE_GCC_WARNING(null-dereference) #endif |