Mercurial > hg > freeDiameter
diff libfdcore/sctps.c @ 1034:f4a73a991623
Fix warning on old GCC versions
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Wed, 17 Apr 2013 18:38:12 +0800 |
parents | 000e1904074c |
children | 1d7b3ebda27f |
line wrap: on
line diff
--- a/libfdcore/sctps.c Tue Apr 16 11:45:52 2013 +0800 +++ b/libfdcore/sctps.c Wed Apr 17 18:38:12 2013 +0800 @@ -230,8 +230,7 @@ /* Set the parameters of a session to use the appropriate fifo and stream information */ #ifndef GNUTLS_VERSION_300 -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +GCC_DIAG_OFF("-Wdeprecated-declarations") #endif /* !GNUTLS_VERSION_300 */ static void set_sess_transport(gnutls_session_t session, struct sctps_ctx *ctx) { @@ -251,7 +250,7 @@ return; } #ifndef GNUTLS_VERSION_300 -# pragma GCC diagnostic pop +GCC_DIAG_ON("-Wdeprecated-declarations") #endif /* !GNUTLS_VERSION_300 */ /*************************************************************/