Skip to content

Commit

Permalink
t/read-to-pipe-async: fix DNDEBUG support
Browse files Browse the repository at this point in the history
When DNDEBUG is defined this was trying to call log_err but it didn't
include the header file or link against the relevant .o file. This will
now fully build with -DNDEBUG.
  • Loading branch information
dandedrick committed Feb 20, 2025
1 parent a6e474c commit 25d1a84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ T_DEDUPE_PROGS = t/fio-dedupe
T_VS_OBJS = t/verify-state.o t/log.o crc/crc32c.o crc/crc32c-intel.o crc/crc32c-arm64.o t/debug.o
T_VS_PROGS = t/fio-verify-state

T_PIPE_ASYNC_OBJS = t/read-to-pipe-async.o
T_PIPE_ASYNC_OBJS = t/read-to-pipe-async.o t/log.o
T_PIPE_ASYNC_PROGS = t/read-to-pipe-async

T_IOU_RING_OBJS = t/io_uring.o lib/rand.o lib/pattern.o lib/strntol.o
Expand Down
1 change: 1 addition & 0 deletions t/read-to-pipe-async.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <assert.h>

#include "../flist.h"
#include "../log.h"

#include "compiler/compiler.h"

Expand Down

0 comments on commit 25d1a84

Please sign in to comment.