]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
If we are building under Coverity, enable geoip_stats and instrument_downloads.
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Dec 2008 21:11:26 +0000 (21:11 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Dec 2008 21:11:26 +0000 (21:11 +0000)
This makes sure that a) optional code gets analyzed too, and b) it doesn't
look like dead code to Coverity.

svn:r17601

src/or/or.h

index 172922d12e4523bba228bdeeba42e07228758854..0b5d17ebe0e325dafe8be88f26f9f01c29a9fd39 100644 (file)
 #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