[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Unconfuse coverity when it sees the systemd headers
commit 71f409606a686c3be2af22c1247e21b8781d98e6
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Jan 7 21:09:41 2015 -0500
Unconfuse coverity when it sees the systemd headers
---
src/or/main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/or/main.c b/src/or/main.c
index c925b7d..9e5a916 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -76,6 +76,12 @@
#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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits