INN commit: trunk/nnrpd (tls.h)

INN Commit rra at isc.org
Thu Jun 17 20:22:05 UTC 2021


    Date: Thursday, June 17, 2021 @ 13:22:05
  Author: iulius
Revision: 10558

Silent gcc warning for C11 feature with latest OpenSSL versions

_Noreturn is used in OpenSSL headers when C11 is recognized.
Otherwise, __attribute__((noreturn)) is used, so it will be
transparant for old compilers.

Modified:
  trunk/nnrpd/tls.h

-------+
 tls.h |    3 +++
 1 file changed, 3 insertions(+)

Modified: tls.h
===================================================================
--- tls.h	2021-06-09 13:55:03 UTC (rev 10557)
+++ tls.h	2021-06-17 20:22:05 UTC (rev 10558)
@@ -18,7 +18,10 @@
 # define OPENSSL_API_COMPAT 0x010100000L
 #endif
 
+/* OpenSSL uses _Noreturn when C11 features are recognized. */
+#pragma GCC diagnostic ignored "-Wc99-c11-compat"
 #include <openssl/lhash.h>
+#pragma GCC diagnostic warning "-Wc99-c11-compat"
 #include <openssl/bn.h>
 #include <openssl/dh.h>
 #include <openssl/err.h>



More information about the inn-committers mailing list