INN commit: branches/2.6/nnrpd (tls.h)

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


    Date: Thursday, June 17, 2021 @ 13:22:42
  Author: iulius
Revision: 10559

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:
  branches/2.6/nnrpd/tls.h

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

Modified: tls.h
===================================================================
--- tls.h	2021-06-17 20:22:05 UTC (rev 10558)
+++ tls.h	2021-06-17 20:22:42 UTC (rev 10559)
@@ -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