Navigation


Changeset 1056:e330166422ba in freeDiameter for libfdproto


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

Use the pragma outside the function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/ostr.c

    r1054 r1056  
    186186 memory has the following meaning: 0: *id can be realloc'd. 1: *id must be malloc'd on output (was static)
    187187*/
     188#if defined(DIAMID_IDNA_IGNORE) || defined(DIAMID_IDNA_REJECT)
     189GCC_DIAG_OFF("-Wunused-but-set-variable")
     190#endif
    188191int fd_os_validate_DiameterIdentity(char ** id, size_t * inoutsz, int memory)
    189192{
    190 GCC_DIAG_OFF("-Wunused-but-set-variable")
    191193        int gotsize = 0;
    192 GCC_DIAG_ON("-Wunused-but-set-variable")
    193194       
    194195        TRACE_ENTRY("%p %p", id, inoutsz);
     
    248249        return 0;
    249250}
     251#if defined(DIAMID_IDNA_IGNORE) || defined(DIAMID_IDNA_REJECT)
     252GCC_DIAG_ON("-Wunused-but-set-variable")
     253#endif
    250254
    251255/* Analyze a DiameterURI and return its components.
Note: See TracChangeset for help on using the changeset viewer.