]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
GCC doesn't have `used-but-makred-unused`
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 7 Oct 2021 19:49:40 +0000 (14:49 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 7 Oct 2021 19:49:40 +0000 (14:49 -0500)
src/lib/tls/ctx.c

index 0d54793d27e3e80ae9039702c4a65a6cb1d3a40e..3ca02f0d89fc9b1770fa90574b3b9390ed2c7a1b 100644 (file)
@@ -371,6 +371,7 @@ static int tls_ctx_load_cert_chain(SSL_CTX *ctx, fr_tls_chain_conf_t *chain)
                        return -1;
                }
 
+DIAG_OFF(DIAG_UNKNOWN_PRAGMAS)
 DIAG_OFF(used-but-marked-unused)       /* fix spurious warnings for sk macros */
                for (i = sk_X509_num(our_chain); i > 0 ; i--) {
                        /*
@@ -383,7 +384,7 @@ DIAG_OFF(used-but-marked-unused)    /* fix spurious warnings for sk macros */
                                                        chain->verify_mode) < 0) return -1;
                }
 DIAG_ON(used-but-marked-unused)        /* fix spurious warnings for sk macros */
-
+DIAG_ON(DIAG_UNKNOWN_PRAGMAS)
                /*
                 *      Record this as a unix timestamp as
                 *      internal time might not progress at