From 3be4d31a03584d40335ccfa1a591cb841c8ac156 Mon Sep 17 00:00:00 2001 From: Simon Halvorsen Date: Fri, 9 Jan 2026 14:39:29 +0100 Subject: [PATCH] fix compiler complaints --- cf-agent/simulate_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf-agent/simulate_mode.c b/cf-agent/simulate_mode.c index 2aa921bbcc..2512617d21 100644 --- a/cf-agent/simulate_mode.c +++ b/cf-agent/simulate_mode.c @@ -146,7 +146,7 @@ static void ManifestStatInfo(const struct stat *st) #define MAX_TIMESTAMP_SIZE (sizeof("2020-10-05 12:56:18 +0200")) char buf[MAX_TIMESTAMP_SIZE] = {0}; - size_t ret = strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S %z", + NDEBUG_UNUSED size_t ret = strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S %z", localtime((time_t*) &(st->st_atime))); assert((ret > 0) && (ret < MAX_TIMESTAMP_SIZE)); printf("Access: %s\n", buf);