[glib-networking/mcatanzaro/base-rebase: 32/45] Properly guard GCC-specific pragmas



commit accf6c50139797d80ea70945fa6c1b0789f3bbad
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Thu Apr 11 15:20:56 2019 -0500

    Properly guard GCC-specific pragmas

 tls/openssl/gtlsconnection-openssl.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 38a5b9a..a49a49e 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -235,10 +235,14 @@ g_tls_connection_openssl_request_rehandshake (GTlsConnectionBase  *tls,
 
   openssl = G_TLS_CONNECTION_OPENSSL (tls);
 
+#if defined(__GNUC__)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
   rehandshake_mode = g_tls_connection_get_rehandshake_mode (G_TLS_CONNECTION (tls));
+#if defined(__GNUC__)
 #pragma GCC diagnostic pop
+#endif
 
   if (rehandshake_mode == G_TLS_REHANDSHAKE_NEVER)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]