Navigation


Changeset 1027:0117a7746b21 in freeDiameter for libfdcore/config.c


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

Fix a number of errors and warnings introduced/highlighted by recent commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/config.c

    r1021 r1027  
    226226#endif /* GNUTLS_VERSION_300 */
    227227
     228#ifndef GNUTLS_VERSION_300
     229# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     230#endif /* !GNUTLS_VERSION_300 */
    228231/* Parse the configuration file (using the yacc parser) */
    229232int fd_conf_parse()
     
    474477                        unsigned int verify;
    475478                        time_t now;
    476                         #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    477479                        GNUTLS_TRACE( gnutls_certificate_get_x509_cas (fd_g_config->cnf_sec_data.credentials, &CA_list, (unsigned int *) &CA_list_length) );
    478480                        GNUTLS_TRACE( gnutls_certificate_get_x509_crls (fd_g_config->cnf_sec_data.credentials, &CRL_list, (unsigned int *) &CRL_list_length) );
    479                         #pragma GCC diagnostic warning "-Wdeprecated-declarations"
    480481                        CHECK_GNUTLS_DO( gnutls_x509_crt_list_verify(certs, cert_max, CA_list, CA_list_length, CRL_list, CRL_list_length, 0, &verify),
    481482                                {
     
    597598        return 0;
    598599}
     600#ifndef GNUTLS_VERSION_300
     601# pragma GCC diagnostic pop "-Wdeprecated-declarations"
     602#endif /* !GNUTLS_VERSION_300 */
    599603
    600604
Note: See TracChangeset for help on using the changeset viewer.