summaryrefslogtreecommitdiff
path: root/userland/libc/time
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-23 00:52:35 +0100
committerAnton Kling <anton@kling.gg>2023-11-23 00:52:35 +0100
commit81819f711e6d1f9216f688da8ecbbc682d106d9c (patch)
tree0f0df7c43cc5bc956c2c067e55766bfa90823a7f /userland/libc/time
parentec91e81a4fcfd7ee6bc4150f06d8740e82f808da (diff)
LibC: Reduce warnings in code
Diffstat (limited to 'userland/libc/time')
-rw-r--r--userland/libc/time/clock_gettime.c1
-rw-r--r--userland/libc/time/gmtime.c1
-rw-r--r--userland/libc/time/localtime.c1
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;
}