-
- Downloads
Silence spurious clang warnings
Silence clang warnings under --enable-expensive-hardening, including: + implicit truncation of 64 bit values to 32 bit; + const char assignment to self; + tautological compare; and + additional parentheses around equality tests. (gcc uses these to silence assignment, so clang warns when they're present in an equality test. But we need to use extra parentheses in macros to isolate them from other code).
Showing
- changes/spurious-clang-warnings 10 additions, 0 deletionschanges/spurious-clang-warnings
- src/common/compat.c 5 additions, 4 deletionssrc/common/compat.c
- src/common/compat.h 5 additions, 4 deletionssrc/common/compat.h
- src/common/crypto_pwbox.c 1 addition, 1 deletionsrc/common/crypto_pwbox.c
- src/ext/ht.h 2 additions, 1 deletionsrc/ext/ht.h
- src/ext/tor_queue.h 15 additions, 8 deletionssrc/ext/tor_queue.h
- src/or/channeltls.c 2 additions, 2 deletionssrc/or/channeltls.c
- src/or/circuitmux_ewma.c 2 additions, 2 deletionssrc/or/circuitmux_ewma.c
- src/or/connection.h 2 additions, 1 deletionsrc/or/connection.h
- src/or/or.h 3 additions, 2 deletionssrc/or/or.h
Loading
Please register or sign in to comment