From 1128c65ab05b65c4158c734423e9beac9801608e Mon Sep 17 00:00:00 2001 From: Julien D'Ascenzio Date: Wed, 18 Mar 2020 10:33:30 +0100 Subject: [PATCH] lib: posix: fix ARG_UNUSED check on clock_getrtc The ARG_UNUSED should be on tz, not tv Signed-off-by: Julien D'Ascenzio --- lib/posix/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/posix/clock.c b/lib/posix/clock.c index e2f96aba22b..1a0ff64d756 100644 --- a/lib/posix/clock.c +++ b/lib/posix/clock.c @@ -98,7 +98,7 @@ int gettimeofday(struct timeval *tv, const void *tz) /* As per POSIX, "if tzp is not a null pointer, the behavior * is unspecified." "tzp" is the "tz" parameter above. */ - ARG_UNUSED(tv); + ARG_UNUSED(tz); res = clock_gettime(CLOCK_REALTIME, &ts); tv->tv_sec = ts.tv_sec;