diff options
author | Anton Kling <anton@kling.gg> | 2023-11-23 00:52:35 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-23 00:52:35 +0100 |
commit | 81819f711e6d1f9216f688da8ecbbc682d106d9c (patch) | |
tree | 0f0df7c43cc5bc956c2c067e55766bfa90823a7f /userland/libc/time | |
parent | ec91e81a4fcfd7ee6bc4150f06d8740e82f808da (diff) |
LibC: Reduce warnings in code
Diffstat (limited to 'userland/libc/time')
-rw-r--r-- | userland/libc/time/clock_gettime.c | 1 | ||||
-rw-r--r-- | userland/libc/time/gmtime.c | 1 | ||||
-rw-r--r-- | userland/libc/time/localtime.c | 1 |
3 files changed, 3 insertions, 0 deletions
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 <time.h> 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; } |