summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-11 21:11:26 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-11 21:11:26 +0000
commit02e26ebc4969353ec71688a3c9088d4de944bff0 (patch)
tree47863cf89ac4f386e1cef85d7148c5ee840cb650
parent98066d62bc154393d36a04e3d26c87e9eff2c06f (diff)
downloadtor-02e26ebc4969353ec71688a3c9088d4de944bff0.tar.gz
tor-02e26ebc4969353ec71688a3c9088d4de944bff0.zip
If we are building under Coverity, enable geoip_stats and instrument_downloads.
This makes sure that a) optional code gets analyzed too, and b) it doesn't look like dead code to Coverity. svn:r17601
-rw-r--r--src/or/or.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 172922d12e..0b5d17ebe0 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -15,6 +15,18 @@
#define OR_H_ID "$Id$"
#include "orconfig.h"
+
+#ifdef __COVERITY__
+/* If we're building for a static analysis, turn on all the off-by-default
+ * features. */
+#ifndef INSTRUMENT_DOWNLOADS
+#define INSTRUMENT_DOWNLOADS 1
+#endif
+#ifndef ENABLE_GEOIP_STATS
+#define ENABLE_GEOIP_STATS 1
+#endif
+#endif
+
#ifdef MS_WINDOWS
#define WIN32_WINNT 0x400
#define _WIN32_WINNT 0x400