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/ext | |
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/ext')
-rw-r--r-- | src/ext/ed25519/donna/ed25519-donna-64bit-x86.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ext/ed25519/donna/ed25519-donna-64bit-x86.h b/src/ext/ed25519/donna/ed25519-donna-64bit-x86.h index 30bd472762..f6b5570298 100644 --- a/src/ext/ed25519/donna/ed25519-donna-64bit-x86.h +++ b/src/ext/ed25519/donna/ed25519-donna-64bit-x86.h @@ -2,6 +2,11 @@ #define HAVE_GE25519_SCALARMULT_BASE_CHOOSE_NIELS +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Woverlength-strings" +#endif + DONNA_NOINLINE static void ge25519_scalarmult_base_choose_niels(ge25519_niels *t, const uint8_t table[256][96], uint32_t pos, signed char b) { int64_t breg = (int64_t)b; @@ -347,5 +352,9 @@ ge25519_scalarmult_base_choose_niels(ge25519_niels *t, const uint8_t table[256][ ); } +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + #endif /* defined(ED25519_GCC_64BIT_X86_CHOOSE) */ |