From b505b66866b7ec56e321ee7b102929d45453af5d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 25 Sep 2025 19:09:08 -0500 Subject: [PATCH] cpukit/libblock/*: Address unused parameter warnings Add "(void) param;" annotation to address unused parameter warnings. Found with GCC's warning -Wunused-paramter. --- cpukit/libblock/src/bdbuf.c | 2 ++ cpukit/libblock/src/diskdevs.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index 1ebf2a3d06..521713dc4f 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -2949,6 +2949,8 @@ rtems_bdbuf_set_block_size (rtems_disk_device *dd, static rtems_task rtems_bdbuf_read_ahead_task (rtems_task_argument arg) { + (void) arg; + rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain; while (bdbuf_cache.read_ahead_enabled) diff --git a/cpukit/libblock/src/diskdevs.c b/cpukit/libblock/src/diskdevs.c index ebc13002dd..ee73ab55fb 100644 --- a/cpukit/libblock/src/diskdevs.c +++ b/cpukit/libblock/src/diskdevs.c @@ -217,6 +217,10 @@ static int null_handler( void *argp ) { + (void) dd; + (void) req; + (void) argp; + return -1; }