]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Apparently coccinelle can't handle multiline #errors.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 14:47:05 +0000 (10:47 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/crypt_ops/crypto_openssl_mgt.c
src/lib/log/log.h

index 9ec59e7c81e33c44daaa49cc981716cee54366b1..917ef4597b37a673831070cff7428e04ec3101f0 100644 (file)
@@ -121,9 +121,11 @@ crypto_openssl_get_header_version_str(void)
   return crypto_openssl_header_version_str;
 }
 
+#ifndef COCCI
 #ifndef OPENSSL_THREADS
-#error OpenSSL has been built without thread support. Tor requires an \
- OpenSSL library with thread support enabled.
+#error "OpenSSL has been built without thread support. Tor requires an \
+ OpenSSL library with thread support enabled."
+#endif
 #endif
 
 #ifndef NEW_THREAD_API
index c4a27782c3ed75919ead938d765ac11d8430d2db..c2b20fc228de56cb9c172927822d95bbe9359966 100644 (file)
 #include <syslog.h>
 #define LOG_WARN LOG_WARNING
 #if LOG_DEBUG < LOG_ERR
+#ifndef COCCI
 #error "Your syslog.h thinks high numbers are more important.  " \
        "We aren't prepared to deal with that."
 #endif
+#endif
 #else /* !(defined(HAVE_SYSLOG_H)) */
 /* Note: Syslog's logging code refers to priorities, with 0 being the most
  * important.  Thus, all our comparisons needed to be reversed when we added