From 9d7b25673ea8bc454530abf891726c19b2ace1b2 Mon Sep 17 00:00:00 2001 From: Dan Dedrick Date: Thu, 20 Feb 2025 10:51:12 -0500 Subject: [PATCH] t/read-to-pipe-async: fix -DNDEBUG support When NDEBUG 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. Signed-off-by: Dan Dedrick --- Makefile | 2 +- t/read-to-pipe-async.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 746a27d4..173378fa 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/t/read-to-pipe-async.c b/t/read-to-pipe-async.c index de98d032..2abe25d3 100644 --- a/t/read-to-pipe-async.c +++ b/t/read-to-pipe-async.c @@ -35,6 +35,7 @@ #include #include "../flist.h" +#include "../log.h" #include "compiler/compiler.h" -- 2.25.1