diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-28 10:02:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-28 10:02:38 -0400 |
commit | 602c52cad486516defc9d5ed375effd74cfe4529 (patch) | |
tree | cb832219a39e6cc84067512fd7493faf44dee307 /src/common/util_bug.c | |
parent | 5f0fa480dd94f4fec7b8b026dbd0a524f7b9c786 (diff) | |
download | tor-602c52cad486516defc9d5ed375effd74cfe4529.tar.gz tor-602c52cad486516defc9d5ed375effd74cfe4529.zip |
Coverity deadcode shenanigans on BUG() macro.
We don't actually want Coverity to complain when a BUG() check can
never fail, since such checks can prevent us from introducing bugs
later on.
Closes ticket 23054. Closes CID 1415720, 1415724.
Diffstat (limited to 'src/common/util_bug.c')
-rw-r--r-- | src/common/util_bug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util_bug.c b/src/common/util_bug.c index 3d990e3700..cc1ac2ff84 100644 --- a/src/common/util_bug.c +++ b/src/common/util_bug.c @@ -13,6 +13,10 @@ #include "backtrace.h" #include "container.h" +#ifdef __COVERITY__ +int bug_macro_deadcode_dummy__ = 0; +#endif + #ifdef TOR_UNIT_TESTS static void (*failed_assertion_cb)(void) = NULL; static int n_bugs_to_capture = 0; |