Navigation


Changeset 1034:f4a73a991623 in freeDiameter for libfdcore


Ignore:
Timestamp:
Apr 17, 2013, 7:38:12 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix warning on old GCC versions

Location:
libfdcore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/config.c

    r1033 r1034  
    227227
    228228#ifndef GNUTLS_VERSION_300
    229 # pragma GCC diagnostic push
    230 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     229GCC_DIAG_OFF("-Wdeprecated-declarations")
    231230#endif /* !GNUTLS_VERSION_300 */
    232231/* Parse the configuration file (using the yacc parser) */
     
    600599}
    601600#ifndef GNUTLS_VERSION_300
    602 # pragma GCC diagnostic pop
     601GCC_DIAG_ON("-Wdeprecated-declarations")
    603602#endif /* !GNUTLS_VERSION_300 */
    604603
  • libfdcore/core.c

    r1033 r1034  
    3636#include "fdcore-internal.h"
    3737
    38 #pragma GCC diagnostic push
    39 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     38GCC_DIAG_OFF("-Wdeprecated-declarations")
    4039#include <gcrypt.h>
    41 #pragma GCC diagnostic pop
     40GCC_DIAG_ON("-Wdeprecated-declarations")
    4241
    4342/* The static configuration structure */
  • libfdcore/sctps.c

    r1033 r1034  
    231231/* Set the parameters of a session to use the appropriate fifo and stream information */
    232232#ifndef GNUTLS_VERSION_300
    233 # pragma GCC diagnostic push
    234 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     233GCC_DIAG_OFF("-Wdeprecated-declarations")
    235234#endif /* !GNUTLS_VERSION_300 */
    236235static void set_sess_transport(gnutls_session_t session, struct sctps_ctx *ctx)
     
    252251}
    253252#ifndef GNUTLS_VERSION_300
    254 # pragma GCC diagnostic pop
     253GCC_DIAG_ON("-Wdeprecated-declarations")
    255254#endif /* !GNUTLS_VERSION_300 */
    256255
Note: See TracChangeset for help on using the changeset viewer.