]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Unconfuse coverity when it sees the systemd headers
authorNick Mathewson <nickm@torproject.org>
Thu, 8 Jan 2015 02:09:41 +0000 (21:09 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 Jan 2015 02:09:41 +0000 (21:09 -0500)
src/or/main.c

index c925b7d593588e570848ececce0a5b5bb6db6aa6..9e5a916b16dce6aa0194acb3e94177d83d9fc1ec 100644 (file)
 #endif
 
 #ifdef HAVE_SYSTEMD
+#   if defined(__COVERITY__) && !defined(__INCLUDE_LEVEL__)
+/* Systemd's use of gcc's __INCLUDE_LEVEL__ extension macro appears to confuse
+ * Coverity. Here's a kludge to unconfuse it.
+ */
+#   define __INCLUDE_LEVEL__ 2
+#   endif
 #include <systemd/sd-daemon.h>
 #endif