summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2023-08-16 14:49:35 +0200
committerdzwdz2023-08-16 14:49:35 +0200
commita454a4ee0c50d2a9f4eb340d4a9ec60b9e089c9a (patch)
tree3c66974ea15fa908954262b1f326c2c7253e8fe3
parentc727e234a91a01742f96bb5715616896922143f4 (diff)
libc: "fix" unused argument warnings
-rw-r--r--src/libc/elfload.c1
-rw-r--r--src/libc/signal.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libc/elfload.c b/src/libc/elfload.c
index c1a08f8..66144bb 100644
--- a/src/libc/elfload.c
+++ b/src/libc/elfload.c
@@ -90,6 +90,7 @@ void _freejmp(void *entry, void *low, size_t imglen, const char **argv, char **e
struct execdata ed;
size_t argv_len;
size_t cwd_len = absolutepath(NULL, NULL, 0);
+ (void)envp;
if (!argv) argv = default_argv;
diff --git a/src/libc/signal.c b/src/libc/signal.c
index 3200263..cc280a6 100644
--- a/src/libc/signal.c
+++ b/src/libc/signal.c
@@ -76,6 +76,7 @@ int sigfillset(sigset_t *set) {
}
int sigprocmask(int how, const sigset_t *set, const sigset_t *oldset) {
+ (void)how; (void)set; (void)oldset;
return 0;
}