Remove a lot of "unused parameter" warnings (#3075)

They might shadow some of the real issues, so better to keep the number
of warnings as low as possible.
This commit is contained in:
Marcin Kolny
2024-01-24 03:21:13 +00:00
committed by GitHub
parent f56154ed80
commit 1505e61704
6 changed files with 167 additions and 98 deletions

View File

@ -15,6 +15,7 @@ static void
blocking_op_sighandler(int signo)
{
/* nothing */
(void)signo;
}
void

View File

@ -73,6 +73,8 @@ os_clock_time_get(__wasi_clockid_t clock_id, __wasi_timestamp_t precision,
clockid_t nclock_id;
__wasi_errno_t error = wasi_clockid_to_clockid(clock_id, &nclock_id);
(void)precision;
if (error != __WASI_ESUCCESS)
return error;

View File

@ -266,5 +266,8 @@ os_icache_flush(void *start, size_t len)
{
#if defined(__APPLE__) || defined(__MACH__)
sys_icache_invalidate(start, len);
#else
(void)start;
(void)len;
#endif
}