cpukit/libfs/src/dosfs/*: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
This commit is contained in:
Joel Sherrill
2025-09-25 19:06:15 -05:00
committed by Gedare Bloom
parent 5cf1eec93b
commit 8f77869f6d
7 changed files with 20 additions and 0 deletions

View File

@@ -1036,6 +1036,8 @@ static inline void
_hash_insert(rtems_chain_control *hash, uint32_t key1, uint32_t key2,
fat_file_fd_t *el)
{
(void) key2;
rtems_chain_append_unprotected((hash) + ((key1) % FAT_HASH_MODULE), &(el)->link);
}
@@ -1056,6 +1058,10 @@ static inline void
_hash_delete(rtems_chain_control *hash, uint32_t key1, uint32_t key2,
fat_file_fd_t *el)
{
(void) hash;
(void) key1;
(void) key2;
rtems_chain_extract_unprotected(&(el)->link);
}

View File

@@ -68,6 +68,8 @@ msdos_creat_node(const rtems_filesystem_location_info_t *parent_loc,
mode_t mode,
fat_file_fd_t *link_fd)
{
(void) mode;
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;

View File

@@ -63,6 +63,8 @@ static bool msdos_is_directory(
void *arg
)
{
(void) arg;
rtems_filesystem_location_info_t *currentloc =
rtems_filesystem_eval_path_get_currentloc( ctx );
fat_file_fd_t *fat_fd = currentloc->node_access;
@@ -77,6 +79,8 @@ static rtems_filesystem_eval_path_generic_status msdos_eval_token(
size_t tokenlen
)
{
(void) arg;
rtems_filesystem_eval_path_generic_status status =
RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;

View File

@@ -1316,6 +1316,8 @@ msdos_find_file_in_directory (
uint32_t *empty_file_offset,
uint32_t *empty_entry_count)
{
(void) name_type;
int rc = RC_OK;
ssize_t bytes_read;
uint32_t dir_entry;

View File

@@ -45,6 +45,8 @@ int msdos_mknod(
dev_t dev
)
{
(void) dev;
int rc = RC_OK;
fat_file_type_t type = FAT_DIRECTORY;

View File

@@ -63,6 +63,8 @@ msdos_rename(
size_t new_namelen
)
{
(void) old_parent_loc;
int rc = RC_OK;
fat_file_fd_t *old_fat_fd = old_loc->node_access;
fat_dir_pos_t old_pos = old_fat_fd->dir_pos;

View File

@@ -27,6 +27,8 @@ int
msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc,
const rtems_filesystem_location_info_t *pathloc)
{
(void) parent_pathloc;
int rc = RC_OK;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
fat_file_fd_t *fat_fd = pathloc->node_access;