[glib-networking/mcatanzaro/base-rebase: 31/33] Properly guard GCC-specific pragmas
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/base-rebase: 31/33] Properly guard GCC-specific pragmas
- Date: Fri, 19 Apr 2019 22:33:43 +0000 (UTC)
commit 8f0a2091dad3ada6fa9b695f3fe9db8c5218e7e5
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 3174888..629f651 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]