Skip to content

Commit 3be4d31

Browse files
fix compiler complaints
1 parent 4c3834d commit 3be4d31

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)