diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-05-30 14:13:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-11 10:11:52 -0400 |
commit | 4caed2424a449712c8ac267d521563d31536aa6a (patch) | |
tree | 262ec1efd589f9639f28c6c09d2b4ab59e1d0d03 /src/test/test_dir_handle_get.c | |
parent | 8f2d2933f912c9952453b17b19636c26579e2323 (diff) | |
download | tor-4caed2424a449712c8ac267d521563d31536aa6a.tar.gz tor-4caed2424a449712c8ac267d521563d31536aa6a.zip |
Enable -Woverlength-strings for GCC>=4.6 on MOST of the code.
IMO it's fine for us to make exceptions to this rule in the unit
tests, but not in the code at large.
Diffstat (limited to 'src/test/test_dir_handle_get.c')
-rw-r--r-- | src/test/test_dir_handle_get.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c index 1416b389aa..2df705f197 100644 --- a/src/test/test_dir_handle_get.c +++ b/src/test/test_dir_handle_get.c @@ -38,7 +38,15 @@ #include <dirent.h> #endif +#if GCC_VERSION >= 406 +DISABLE_GCC_WARNING(overlength-strings) +/* We allow huge string constants in the unit tests, but not in the code + * at large. */ +#endif #include "vote_descriptors.inc" +#if GCC_VERSION >= 406 +ENABLE_GCC_WARNING(overlength-strings) +#endif #define NS_MODULE dir_handle_get |