From 276d97352775f0ad94cf6e98de522391085d4326 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 23 Apr 2024 12:48:35 +0200 Subject: [PATCH] Wignore --- src/sched-threads.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/sched-threads.c b/src/sched-threads.c index c63f76d..1c7820b 100644 --- a/src/sched-threads.c +++ b/src/sched-threads.c @@ -1,4 +1,5 @@ #pragma GCC diagnostic ignored "-Wcast-function-type" +#pragma GCC diagnostic ignored "-Wunused-parameter" #include "../includes/sched.h" @@ -8,10 +9,6 @@ int sched_init(int nthreads, int qlen, taskfunc f, void *closure) { - // Paramètres inutilisés - (void)nthreads; - (void)qlen; - sched_spawn(f, closure, NULL); return 0; } @@ -19,9 +16,6 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure) int sched_spawn(taskfunc f, void *closure, struct scheduler *s) { - // Paramètre inutilisé - (void)s; - pthread_t thread; int err;