Navigation


Changeset 1539:d25ce064c667 in freeDiameter for libfdproto


Ignore:
Timestamp:
Apr 30, 2020, 2:24:47 PM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

Correctly fix compiler warnings

ASSERT() is only used

#ifndef NDEBUG

not

#ifdef DEBUG

Fixes Debug build.

Location:
libfdproto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/fifo.c

    r1405 r1539  
    171171{
    172172        struct fifo * q;
    173 #ifdef DEBUG
     173#ifndef NDEBUG
    174174        int loops = 0;
    175175#endif
     
    228228int fd_fifo_move ( struct fifo * old, struct fifo * new, struct fifo ** loc_update )
    229229{
    230 #ifdef DEBUG
     230#ifndef NDEBUG
    231231        int loops = 0;
    232232#endif
     
    421421                        queue->thrs_push-- ;
    422422
    423 #ifndef DEBUG
     423#ifdef NDEBUG
    424424                        (void)ret;
    425425#endif
  • libfdproto/messages.c

    r1442 r1539  
    22852285        if (msg->msg_model != NULL) {
    22862286                /* Check if this model is still valid for the message data */
    2287 #ifdef DEBUG
     2287#ifndef NDEBUG
    22882288                enum dict_object_type    dicttype;
    22892289#endif
Note: See TracChangeset for help on using the changeset viewer.