Silence spurious clang warnings
commit13298d90a90dc62d21d38f910171c9b57a8f0273
authorteor <teor2345@gmail.com>
Sun, 26 Oct 2014 03:43:55 +0000 (26 14:43 +1100)
committerteor <teor2345@gmail.com>
Thu, 30 Oct 2014 11:34:46 +0000 (30 22:34 +1100)
treedf91745009bef0a26901438d361036f039e9b00f
parentacc392856d255059949bb22d2daf56c61f3fd76d
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).
changes/spurious-clang-warnings [new file with mode: 0644]
src/common/compat.c
src/common/compat.h
src/common/crypto_pwbox.c
src/ext/ht.h
src/ext/tor_queue.h
src/or/channeltls.c
src/or/circuitmux_ewma.c
src/or/connection.h
src/or/or.h