From 81819f711e6d1f9216f688da8ecbbc682d106d9c Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 23 Nov 2023 00:52:35 +0100 Subject: LibC: Reduce warnings in code --- userland/libc/time/clock_gettime.c | 1 + userland/libc/time/gmtime.c | 1 + userland/libc/time/localtime.c | 1 + 3 files changed, 3 insertions(+) (limited to 'userland/libc/time') diff --git a/userland/libc/time/clock_gettime.c b/userland/libc/time/clock_gettime.c index 15f0cb7..492b968 100644 --- a/userland/libc/time/clock_gettime.c +++ b/userland/libc/time/clock_gettime.c @@ -2,6 +2,7 @@ #include int clock_gettime(clockid_t clock_id, struct timespec *tp) { + (void)clock_id; tp->tv_sec = 0; tp->tv_nsec = 0; return 0; diff --git a/userland/libc/time/gmtime.c b/userland/libc/time/gmtime.c index 44e0ff3..08af482 100644 --- a/userland/libc/time/gmtime.c +++ b/userland/libc/time/gmtime.c @@ -16,6 +16,7 @@ struct tm gmtime_r = { // https://pubs.opengroup.org/onlinepubs/9699919799/functions/gmtime.html struct tm *gmtime(const time_t *timer) { + (void)timer; // TODO: Implement return &gmtime_r; } diff --git a/userland/libc/time/localtime.c b/userland/libc/time/localtime.c index 40ca351..8ad74d8 100644 --- a/userland/libc/time/localtime.c +++ b/userland/libc/time/localtime.c @@ -16,6 +16,7 @@ // https://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html struct tm *localtime(const time_t *timer) { + (void)timer; // TODO: Implement return &localtime_r; } -- cgit v1.2.3