]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: silence unused param warnings for kmod_file_load_*() stubs
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 May 2025 10:52:27 +0000 (11:52 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 12:54:40 +0000 (07:54 -0500)
commit9d7c40defdb384f10643a37f4b43f7605f905194
tree598eda2989d6cd3e48e16e33ea75a087a4e332bc
parent52e20d50a6109c00a9723b6f61e77a7f2f114939
libkmod: silence unused param warnings for kmod_file_load_*() stubs

When building without compression, the respective load functions are
static inline header stubs. In which case the struct kmod_file *file is
always unused and the compiler rightfully warns about it.

Not much we can do here, other than annotate them to silence the
warnings.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/361
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-internal-file.h