From 5137b7d64637e4a20a6bedd3c91d53309971945a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 1 Aug 2023 16:20:00 +0800 Subject: [PATCH] Revert "IO: only suppress IO in release mode" This reverts commit f1ec86a371eee29a678b247c226dca388ad73646. --- src/common/io/io.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/io/io.h b/src/common/io/io.h index aff080dc8..cfe730550 100644 --- a/src/common/io/io.h +++ b/src/common/io/io.h @@ -96,11 +96,7 @@ static inline void ffUnsuppressIO(bool* suppressed) *suppressed = false; } -#ifdef NDEBUG - #define FF_SUPPRESS_IO() bool __attribute__((__cleanup__(ffUnsuppressIO), __unused__)) io_suppressed__ = ffSuppressIO(true) -#else - #define FF_SUPPRESS_IO() -#endif +#define FF_SUPPRESS_IO() bool __attribute__((__cleanup__(ffUnsuppressIO), __unused__)) io_suppressed__ = ffSuppressIO(true) void ffListFilesRecursively(const char* path);