This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit b73b874e1d47e1a2765b5379c6345e984a617276
Author: Andrew Stitcher <[email protected]>
AuthorDate: Mon Oct 5 21:42:19 2026 -0400

    NO-JIRA: Protect non portable compiler pragmas
---
 c/src/ssl/openssl.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/c/src/ssl/openssl.c b/c/src/ssl/openssl.c
index e4f80e2f4..e2fef6f9f 100644
--- a/c/src/ssl/openssl.c
+++ b/c/src/ssl/openssl.c
@@ -336,9 +336,10 @@ static int verify_callback(int preverify_ok, 
X509_STORE_CTX *ctx)
 }
 
 // Temporary: PROTON-2544 for build.  Next release: replace or remove DH_xxx() 
functions.
+#ifdef __GNUC__
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-
+#endif
 
 // this code was generated using the command:
 // "openssl dhparam -C -2 2048"
@@ -531,7 +532,9 @@ static bool pni_init_ssl_domain( pn_ssl_domain_t * domain, 
pn_ssl_mode_t mode )
 }
 
 // PROTON-2544: see earlier related push.  Temporary only.
+#ifdef __GNUC__
 #pragma GCC diagnostic pop
+#endif
 
 pn_ssl_domain_t *pn_ssl_domain( pn_ssl_mode_t mode )
 {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to