Navigation


Changeset 1539:d25ce064c667 in freeDiameter for libfdproto/fifo.c


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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.