mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 09:50:29 +01:00
Add -Wunused-const-variable=2 on GCC >=6.1
This caused a trivial warning in curve25519-donna-64bit.h, which had two unused constants. I commented them out.
This commit is contained in:
parent
12517c7303
commit
2ff20c93a5
@ -1778,6 +1778,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
|
||||
CFLAGS="$CFLAGS -Wignored-attributes -Wshift-negative-value -Wshift-overflow=2"
|
||||
CFLAGS="$CFLAGS -Wnull-dereference"
|
||||
CFLAGS="$CFLAGS -Wduplicated-cond"
|
||||
CFLAGS="$CFLAGS -Wunused-const-variable=2"
|
||||
fi
|
||||
|
||||
if test "x$have_shorten64_flag" = "xyes"; then
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
typedef uint64_t bignum25519[5];
|
||||
|
||||
static const uint64_t reduce_mask_40 = ((uint64_t)1 << 40) - 1;
|
||||
//static const uint64_t reduce_mask_40 = ((uint64_t)1 << 40) - 1;
|
||||
static const uint64_t reduce_mask_51 = ((uint64_t)1 << 51) - 1;
|
||||
static const uint64_t reduce_mask_56 = ((uint64_t)1 << 56) - 1;
|
||||
//static const uint64_t reduce_mask_56 = ((uint64_t)1 << 56) - 1;
|
||||
|
||||
/* out = in */
|
||||
DONNA_INLINE static void
|
||||
|
Loading…
Reference in New Issue
Block a user