Navigation


Changeset 1405:3cbe458fbfa9 in freeDiameter for libfdproto


Ignore:
Timestamp:
Feb 18, 2020, 2:23:53 PM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

Fix compiler warnings

Location:
libfdproto
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/dictionary_functions.c

    r1300 r1405  
    288288int fd_dictfct_Time_encode(void * data, union avp_value * avp_value)
    289289{
    290         char * buf;
     290        char * buf = NULL;
    291291        size_t len;
    292292       
  • libfdproto/fifo.c

    r1393 r1405  
    171171{
    172172        struct fifo * q;
     173#ifdef DEBUG
    173174        int loops = 0;
     175#endif
    174176
    175177        TRACE_ENTRY( "%p", queue );
     
    226228int fd_fifo_move ( struct fifo * old, struct fifo * new, struct fifo ** loc_update )
    227229{
     230#ifdef DEBUG
    228231        int loops = 0;
     232#endif
    229233
    230234        TRACE_ENTRY("%p %p %p", old, new, loc_update);
     
    417421                        queue->thrs_push-- ;
    418422
     423#ifndef DEBUG
     424                        (void)ret;
     425#endif
    419426                        ASSERT( ret == 0 );
    420427                }
  • libfdproto/messages.c

    r1327 r1405  
    22852285        if (msg->msg_model != NULL) {
    22862286                /* Check if this model is still valid for the message data */
     2287#ifdef DEBUG
    22872288                enum dict_object_type    dicttype;
     2289#endif
    22882290                struct dict_cmd_data     data;
    22892291                ASSERT(((fd_dict_gettype(msg->msg_model, &dicttype) == 0) && (dicttype == DICT_COMMAND)));
Note: See TracChangeset for help on using the changeset viewer.