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_helpers.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_helpers.c')
-rw-r--r-- | src/test/test_helpers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/test_helpers.c b/src/test/test_helpers.c index c6daaf220a..bf0365a0d2 100644 --- a/src/test/test_helpers.c +++ b/src/test/test_helpers.c @@ -16,7 +16,15 @@ #include "test.h" #include "test_helpers.h" +#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 "test_descriptors.inc" +#if GCC_VERSION >= 406 +ENABLE_GCC_WARNING(overlength-strings) +#endif /* Return a statically allocated string representing yesterday's date * in ISO format. We use it so that state file items are not found to |