Navigation


Changes in / [1044:531733c053dc:1043:3fa4dc91adee] in freeDiameter


Ignore:
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap_tls.h

    r1034 r1033  
    4040#define DIAMEAP_TLS_H_
    4141
    42  #if defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 405
    43 # define GCC_DIAG_DO_PRAGMA(x) _Pragma (#x)
    44 # define GCC_DIAG_PRAGMA(x) GCC_DIAG_DO_PRAGMA(GCC diagnostic x)
    45 # if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406
    46 #  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(push) \
    47      GCC_DIAG_PRAGMA(ignored x)
    48 #  define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(pop)
    49 # else
    50 #  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored x)
    51 #  define GCC_DIAG_ON(x)  GCC_DIAG_PRAGMA(warning x)
    52 # endif
    53 #else
    54 # define GCC_DIAG_OFF(x)
    55 # define GCC_DIAG_ON(x)
    56 #endif
    57 
    58 
    5942#include "diameap_defs.h"
    6043#include <gnutls/gnutls.h>
    61 GCC_DIAG_OFF("-Wdeprecated-declarations")
     44#pragma GCC diagnostic push
     45#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    6246#include <gcrypt.h>
    63 GCC_DIAG_ON("-Wdeprecated-declarations")
     47#pragma GCC diagnostic pop
    6448#include <errno.h>
    6549#include <pthread.h>
  • extensions/app_diameap/libcrypt.h

    r1034 r1033  
    4040#define LIBCRYPT_H_
    4141
     42#pragma GCC diagnostic push
     43#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     44#include <gcrypt.h>
     45#pragma GCC diagnostic pop
     46#include <stdio.h>
     47
    4248/* EAP-TLS*/
    4349#include "diameap_tls.h"
    44 
    45 GCC_DIAG_OFF("-Wdeprecated-declarations")
    46 #include <gcrypt.h>
    47 GCC_DIAG_ON("-Wdeprecated-declarations")
    48 #include <stdio.h>
    49 
    5050
    5151
  • extensions/app_diameap/plugins/eap_md5/eap_md5.c

    r1034 r1033  
    3838
    3939#include "../../plugins.h"
    40 GCC_DIAG_OFF("-Wdeprecated-declarations")
     40#pragma GCC diagnostic push
     41#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4142#include <gcrypt.h>
    42 GCC_DIAG_ON("-Wdeprecated-declarations")
     43#pragma GCC diagnostic pop
    4344
    4445#define CHALLENGE_LEN   16
  • extensions/app_sip/app_sip.h

    r1034 r1033  
    3939#include <stdlib.h>
    4040#include <stdio.h>
    41 GCC_DIAG_OFF("-Wdeprecated-declarations")
     41#pragma GCC diagnostic push
     42#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4243#include <gcrypt.h>
    43 GCC_DIAG_ON("-Wdeprecated-declarations")
     44#pragma GCC diagnostic pop
    4445#include <string.h>
    4546#include <mysql.h>
  • extensions/test_sip/test_sip.h

    r1034 r1033  
    3939#include <stdlib.h>
    4040#include <stdio.h>
    41 GCC_DIAG_OFF("-Wdeprecated-declarations")
     41#pragma GCC diagnostic push
     42#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4243#include <gcrypt.h>
    43 GCC_DIAG_ON("-Wdeprecated-declarations")
     44#pragma GCC diagnostic pop
    4445#include <string.h>
    4546#include <mysql.h>
  • include/freeDiameter/libfdproto.h

    r1038 r1036  
    8989#define _ATTRIBUTE_PRINTFLIKE_(_f,_v) __attribute__ ((format (printf, _f, _v)))
    9090#endif /* SWIG */
    91 
    92 /* Remove some deprecated warnings from some gnutls versions, when possible */
    93 #if defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 405
    94 # define GCC_DIAG_DO_PRAGMA(x) _Pragma (#x)
    95 # define GCC_DIAG_PRAGMA(x) GCC_DIAG_DO_PRAGMA(GCC diagnostic x)
    96 # if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406
    97 #  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(push) \
    98      GCC_DIAG_PRAGMA(ignored x)
    99 #  define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(pop)
    100 # else
    101 #  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored x)
    102 #  define GCC_DIAG_ON(x)  GCC_DIAG_PRAGMA(warning x)
    103 # endif
    104 #else
    105 # define GCC_DIAG_OFF(x)
    106 # define GCC_DIAG_ON(x)
    107 #endif
    10891
    10992/*============================================================*/
  • libfdcore/config.c

    r1034 r1033  
    227227
    228228#ifndef GNUTLS_VERSION_300
    229 GCC_DIAG_OFF("-Wdeprecated-declarations")
     229# pragma GCC diagnostic push
     230# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    230231#endif /* !GNUTLS_VERSION_300 */
    231232/* Parse the configuration file (using the yacc parser) */
     
    599600}
    600601#ifndef GNUTLS_VERSION_300
    601 GCC_DIAG_ON("-Wdeprecated-declarations")
     602# pragma GCC diagnostic pop
    602603#endif /* !GNUTLS_VERSION_300 */
    603604
  • libfdcore/core.c

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

    r1034 r1033  
    231231/* Set the parameters of a session to use the appropriate fifo and stream information */
    232232#ifndef GNUTLS_VERSION_300
    233 GCC_DIAG_OFF("-Wdeprecated-declarations")
     233# pragma GCC diagnostic push
     234# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    234235#endif /* !GNUTLS_VERSION_300 */
    235236static void set_sess_transport(gnutls_session_t session, struct sctps_ctx *ctx)
     
    251252}
    252253#ifndef GNUTLS_VERSION_300
    253 GCC_DIAG_ON("-Wdeprecated-declarations")
     254# pragma GCC diagnostic pop
    254255#endif /* !GNUTLS_VERSION_300 */
    255256
  • tests/tests.h

    r1034 r1033  
    4747#include <pthread.h>
    4848#include <errno.h>
    49 GCC_DIAG_OFF("-Wdeprecated-declarations")
     49#pragma GCC diagnostic push
     50#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    5051#include <gcrypt.h>
    51 GCC_DIAG_ON("-Wdeprecated-declarations")
     52#pragma GCC diagnostic pop
    5253
    5354/* Test timeout duration, unless -n is passed on the command line */
Note: See TracChangeset for help on using the changeset viewer.