Mercurial > hg > freeDiameter
diff libfdcore/config.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 | 7d7266115a34 |
line wrap: on
line diff
--- a/libfdcore/config.c Tue Apr 16 11:45:52 2013 +0800 +++ b/libfdcore/config.c Wed Apr 17 18:38:12 2013 +0800 @@ -226,8 +226,7 @@ #endif /* GNUTLS_VERSION_300 */ #ifndef GNUTLS_VERSION_300 -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +GCC_DIAG_OFF("-Wdeprecated-declarations") #endif /* !GNUTLS_VERSION_300 */ /* Parse the configuration file (using the yacc parser) */ int fd_conf_parse() @@ -599,7 +598,7 @@ return 0; } #ifndef GNUTLS_VERSION_300 -# pragma GCC diagnostic pop +GCC_DIAG_ON("-Wdeprecated-declarations") #endif /* !GNUTLS_VERSION_300 */