mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Adjust nvd_{load,unload}() definitions to avoid clang 15 warnings
With clang 15, the following -Werror warnings are produced:
sys/dev/nvd/nvd.c:150:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
nvd_load()
^
void
sys/dev/nvd/nvd.c:166:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
nvd_unload()
^
void
This is because nvd_load() and nvd_unload() are declared with a (void)
argument list, but defined with an empty argument list. Make the
definitions match the declarations.
MFC after: 3 days
This commit is contained in:
parent
52c80d495a
commit
c46c9b3f5f
1 changed files with 2 additions and 2 deletions
|
|
@ -147,7 +147,7 @@ MODULE_VERSION(nvd, 1);
|
|||
MODULE_DEPEND(nvd, nvme, 1, 1, 1);
|
||||
|
||||
static int
|
||||
nvd_load()
|
||||
nvd_load(void)
|
||||
{
|
||||
if (!nvme_use_nvd)
|
||||
return 0;
|
||||
|
|
@ -163,7 +163,7 @@ nvd_load()
|
|||
}
|
||||
|
||||
static void
|
||||
nvd_unload()
|
||||
nvd_unload(void)
|
||||
{
|
||||
struct nvd_controller *ctrlr;
|
||||
struct nvd_disk *ndisk;
|
||||
|
|
|
|||
Loading…
Reference in a new issue