Skip to content

Commit 381d74d

Browse files
authored
Merge pull request #6013 from SimonThalvorsen/CFE-3695
fix compiler complaints -Wunused-variable
2 parents 4c3834d + 3be4d31 commit 381d74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf-agent/simulate_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static void ManifestStatInfo(const struct stat *st)
146146
#define MAX_TIMESTAMP_SIZE (sizeof("2020-10-05 12:56:18 +0200"))
147147
char buf[MAX_TIMESTAMP_SIZE] = {0};
148148

149-
size_t ret = strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S %z",
149+
NDEBUG_UNUSED size_t ret = strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S %z",
150150
localtime((time_t*) &(st->st_atime)));
151151
assert((ret > 0) && (ret < MAX_TIMESTAMP_SIZE));
152152
printf("Access: %s\n", buf);

0 commit comments

Comments
 (0)