lib: posix: fix ARG_UNUSED check on clock_getrtc

The ARG_UNUSED should be on tz, not tv

Signed-off-by: Julien D'Ascenzio <julien.dascenzio@paratronic.fr>
This commit is contained in:
Julien D'Ascenzio 2020-03-18 10:33:30 +01:00 committed by Anas Nashif
commit 1128c65ab0

View file

@ -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;