Skip to content

Commit

Permalink
vfs_implementation: Fix warning of unused include_hidden parameter (l…
Browse files Browse the repository at this point in the history
…ibretro#16540)

This fixes a warning of the `include_hidden` parameter not being used outside of `_WIN32`.

```
vfs/vfs_implementation.c:1063:30: error: unused parameter ‘include_hidden’ [-Werror=unused-parameter]
 1063 |       const char *name, bool include_hidden)
      |                              ^
cc1: all warnings being treated as error
```
  • Loading branch information
RobLoach authored May 17, 2024
1 parent 395f925 commit 41db4b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libretro-common/vfs/vfs_implementation.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,8 @@ libretro_vfs_implementation_dir *retro_vfs_opendir_impl(
rdir->entry.dwFileAttributes |= FILE_ATTRIBUTE_HIDDEN;
else
rdir->entry.dwFileAttributes &= ~FILE_ATTRIBUTE_HIDDEN;
#else
(void)include_hidden;
#endif

if (rdir->directory && !dirent_check_error(rdir))
Expand Down

0 comments on commit 41db4b0

Please sign in to comment.