Navigation


Changeset 1033:000e1904074c in freeDiameter


Ignore:
Timestamp:
Apr 16, 2013, 12:45:52 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
1034:f4a73a991623, 1035:2f989d1a21e9
Phase:
public
Message:

Fix a number of additional warnings

Files:
15 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap_tls.h

    r959 r1033  
    4242#include "diameap_defs.h"
    4343#include <gnutls/gnutls.h>
     44#pragma GCC diagnostic push
    4445#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4546#include <gcrypt.h>
    46 #pragma GCC diagnostic warning "-Wdeprecated-declarations"
     47#pragma GCC diagnostic pop
    4748#include <errno.h>
    4849#include <pthread.h>
  • extensions/app_diameap/libcrypt.h

    r959 r1033  
    4040#define LIBCRYPT_H_
    4141
     42#pragma GCC diagnostic push
    4243#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4344#include <gcrypt.h>
    44 #pragma GCC diagnostic warning "-Wdeprecated-declarations"
     45#pragma GCC diagnostic pop
    4546#include <stdio.h>
    4647
  • extensions/app_diameap/plugins/eap_md5/eap_md5.c

    r1027 r1033  
    3838
    3939#include "../../plugins.h"
     40#pragma GCC diagnostic push
    4041#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4142#include <gcrypt.h>
    42 #pragma GCC diagnostic warning "-Wdeprecated-declarations"
     43#pragma GCC diagnostic pop
    4344
    4445#define CHALLENGE_LEN   16
  • extensions/app_diameap/plugins/eap_tls/eaptls.l

    r565 r1033  
    4040%{
    4141#include <stdio.h>
     42#include "eap_tls.h"
    4243#include "eaptls.tab.h"
    4344
  • extensions/app_radgw/rgw_clients.c

    r1027 r1033  
    913913        int ret;
    914914       
    915         TRACE_ENTRY("%p %p %lu", ip_port, key, keylen);
     915        TRACE_ENTRY("%p %p %zu", ip_port, key, keylen);
    916916       
    917917        CHECK_PARAMS( ip_port && key && *key && keylen );
  • extensions/app_sip/app_sip.h

    r1027 r1033  
    3939#include <stdlib.h>
    4040#include <stdio.h>
     41#pragma GCC diagnostic push
    4142#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4243#include <gcrypt.h>
    43 #pragma GCC diagnostic warning "-Wdeprecated-declarations"
     44#pragma GCC diagnostic pop
    4445#include <string.h>
    4546#include <mysql.h>
  • extensions/test_sip/test_sip.h

    r972 r1033  
    3939#include <stdlib.h>
    4040#include <stdio.h>
     41#pragma GCC diagnostic push
    4142#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    4243#include <gcrypt.h>
    43 #pragma GCC diagnostic warning "-Wdeprecated-declarations"
     44#pragma GCC diagnostic pop
    4445#include <string.h>
    4546#include <mysql.h>
  • include/freeDiameter/libfdproto.h

    r1027 r1033  
    251251/* A version of __FILE__ without the full path */
    252252static char * file_bname = NULL;
    253 #define __STRIPPED_FILE__       (file_bname ?: (file_bname = basename((char *)__FILE__)))
     253static char * file_bname_init(char * full) { file_bname = basename(full); return file_bname; }
     254#define __STRIPPED_FILE__       (file_bname ?: file_bname_init((char *)__FILE__))
    254255
    255256/* Boolean for tracing at a certain level */
  • libfdcore/config.c

    r1027 r1033  
    227227
    228228#ifndef GNUTLS_VERSION_300
     229# pragma GCC diagnostic push
    229230# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    230231#endif /* !GNUTLS_VERSION_300 */
     
    599600}
    600601#ifndef GNUTLS_VERSION_300
    601 # pragma GCC diagnostic pop "-Wdeprecated-declarations"
     602# pragma GCC diagnostic pop
    602603#endif /* !GNUTLS_VERSION_300 */
    603604
  • libfdcore/core.c

    r1027 r1033  
    3636#include "fdcore-internal.h"
    3737
     38#pragma GCC diagnostic push
    3839#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    3940#include <gcrypt.h>
    40 #pragma GCC diagnostic pop "-Wdeprecated-declarations"
     41#pragma GCC diagnostic pop
    4142
    4243/* The static configuration structure */
  • libfdcore/endpoints.c

    r976 r1033  
    6464                fd_ep_dump( 4, list );
    6565                TRACE_DEBUG(ANNOYING, "  DEBUG:fd_ep_add_merge  Adding:");
    66                 fd_log_debug("    %s {%s%s%s%s}", buf,
     66                fd_log_debug("    %s {%s%s%s%s%s}", buf,
    6767                                (flags & EP_FL_CONF)    ? "C" : "-",
    6868                                (flags & EP_FL_DISC)        ? "D" : "-",
  • libfdcore/p_psm.c

    r1027 r1033  
    660660                /* At this point the message must have been fully handled already */
    661661                if (msg) {
    662                         fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Internal error: unhandled message.", peer->p_hdr.info.pi_diamid );
     662                        fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Internal error ('%s'): unhandled message.", peer->p_hdr.info.pi_diamid );
    663663                        fd_msg_free(msg);
    664664                }
  • libfdcore/sctps.c

    r1027 r1033  
    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
    233234# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    234235#endif /* !GNUTLS_VERSION_300 */
     
    251252}
    252253#ifndef GNUTLS_VERSION_300
    253 # pragma GCC diagnostic pop "-Wdeprecated-declarations"
     254# pragma GCC diagnostic pop
    254255#endif /* !GNUTLS_VERSION_300 */
    255256
  • libfdproto/dictionary_functions.c

    r1029 r1033  
    279279    /* XXX: 2036 fix */
    280280    out += DIFF_EPOCH_TO_NTP;
    281     CHECK_PARAMS( (out & 0xffffffff00000000) == 0);
     281    CHECK_PARAMS( (out >> 32) == 0);
    282282
    283283    CHECK_MALLOC(conv=(char *)malloc(5));
     
    314314        CHECK_PARAMS( avp_value && interpreted );
    315315       
    316         return diameter_string_to_time_t(avp_value->os.data, avp_value->os.len, interpreted);
     316        return diameter_string_to_time_t((const char *)avp_value->os.data, avp_value->os.len, interpreted);
    317317}
    318318
  • tests/tests.h

    r1000 r1033  
    4747#include <pthread.h>
    4848#include <errno.h>
     49#pragma GCC diagnostic push
    4950#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    5051#include <gcrypt.h>
    51 #pragma GCC diagnostic warning "-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.