Changeset 1034:f4a73a991623 in freeDiameter
- Timestamp:
- Apr 17, 2013, 7:38:12 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_diameap/diameap_tls.h
r1033 r1034 40 40 #define DIAMEAP_TLS_H_ 41 41 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 42 59 #include "diameap_defs.h" 43 60 #include <gnutls/gnutls.h> 44 #pragma GCC diagnostic push 45 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 61 GCC_DIAG_OFF("-Wdeprecated-declarations") 46 62 #include <gcrypt.h> 47 #pragma GCC diagnostic pop 63 GCC_DIAG_ON("-Wdeprecated-declarations") 48 64 #include <errno.h> 49 65 #include <pthread.h> -
extensions/app_diameap/libcrypt.h
r1033 r1034 40 40 #define LIBCRYPT_H_ 41 41 42 #pragma GCC diagnostic push 43 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 42 /* EAP-TLS*/ 43 #include "diameap_tls.h" 44 45 GCC_DIAG_OFF("-Wdeprecated-declarations") 44 46 #include <gcrypt.h> 45 #pragma GCC diagnostic pop 47 GCC_DIAG_ON("-Wdeprecated-declarations") 46 48 #include <stdio.h> 47 49 48 /* EAP-TLS*/49 #include "diameap_tls.h"50 50 51 51 -
extensions/app_diameap/plugins/eap_md5/eap_md5.c
r1033 r1034 38 38 39 39 #include "../../plugins.h" 40 #pragma GCC diagnostic push 41 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 40 GCC_DIAG_OFF("-Wdeprecated-declarations") 42 41 #include <gcrypt.h> 43 #pragma GCC diagnostic pop 42 GCC_DIAG_ON("-Wdeprecated-declarations") 44 43 45 44 #define CHALLENGE_LEN 16 -
extensions/app_sip/app_sip.h
r1033 r1034 39 39 #include <stdlib.h> 40 40 #include <stdio.h> 41 #pragma GCC diagnostic push 42 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 41 GCC_DIAG_OFF("-Wdeprecated-declarations") 43 42 #include <gcrypt.h> 44 #pragma GCC diagnostic pop 43 GCC_DIAG_ON("-Wdeprecated-declarations") 45 44 #include <string.h> 46 45 #include <mysql.h> -
extensions/test_sip/test_sip.h
r1033 r1034 39 39 #include <stdlib.h> 40 40 #include <stdio.h> 41 #pragma GCC diagnostic push 42 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 41 GCC_DIAG_OFF("-Wdeprecated-declarations") 43 42 #include <gcrypt.h> 44 #pragma GCC diagnostic pop 43 GCC_DIAG_ON("-Wdeprecated-declarations") 45 44 #include <string.h> 46 45 #include <mysql.h> -
include/freeDiameter/libfdproto.h
r1033 r1034 89 89 #define _ATTRIBUTE_PRINTFLIKE_(_f,_v) __attribute__ ((format (printf, _f, _v))) 90 90 #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 91 108 92 109 /*============================================================*/ -
libfdcore/config.c
r1033 r1034 227 227 228 228 #ifndef GNUTLS_VERSION_300 229 # pragma GCC diagnostic push 230 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 229 GCC_DIAG_OFF("-Wdeprecated-declarations") 231 230 #endif /* !GNUTLS_VERSION_300 */ 232 231 /* Parse the configuration file (using the yacc parser) */ … … 600 599 } 601 600 #ifndef GNUTLS_VERSION_300 602 # pragma GCC diagnostic pop 601 GCC_DIAG_ON("-Wdeprecated-declarations") 603 602 #endif /* !GNUTLS_VERSION_300 */ 604 603 -
libfdcore/core.c
r1033 r1034 36 36 #include "fdcore-internal.h" 37 37 38 #pragma GCC diagnostic push 39 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 38 GCC_DIAG_OFF("-Wdeprecated-declarations") 40 39 #include <gcrypt.h> 41 #pragma GCC diagnostic pop 40 GCC_DIAG_ON("-Wdeprecated-declarations") 42 41 43 42 /* The static configuration structure */ -
libfdcore/sctps.c
r1033 r1034 231 231 /* Set the parameters of a session to use the appropriate fifo and stream information */ 232 232 #ifndef GNUTLS_VERSION_300 233 # pragma GCC diagnostic push 234 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 233 GCC_DIAG_OFF("-Wdeprecated-declarations") 235 234 #endif /* !GNUTLS_VERSION_300 */ 236 235 static void set_sess_transport(gnutls_session_t session, struct sctps_ctx *ctx) … … 252 251 } 253 252 #ifndef GNUTLS_VERSION_300 254 # pragma GCC diagnostic pop 253 GCC_DIAG_ON("-Wdeprecated-declarations") 255 254 #endif /* !GNUTLS_VERSION_300 */ 256 255 -
tests/tests.h
r1033 r1034 47 47 #include <pthread.h> 48 48 #include <errno.h> 49 #pragma GCC diagnostic push 50 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 49 GCC_DIAG_OFF("-Wdeprecated-declarations") 51 50 #include <gcrypt.h> 52 #pragma GCC diagnostic pop 51 GCC_DIAG_ON("-Wdeprecated-declarations") 53 52 54 53 /* Test timeout duration, unless -n is passed on the command line */
Note: See TracChangeset
for help on using the changeset viewer.