HomeFreeBSD

Adjust agp_find_device() definition in agp.c to avoid clang 15 warning

Description

Adjust agp_find_device() definition in agp.c to avoid clang 15 warning

With clang 15, the following -Werror warning is produced:

sys/dev/agp/agp.c:910:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
agp_find_device()
               ^
                void

This is because agp_find_device() is declared with a (void) argument
list, and defined with an empty argument list. Make the definition match
the declaration.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 16 2022, 2:46 PM
Parents
rG6eeba7dbd63c: ule: unbreak UP builds
Branches
Unknown
Tags
Unknown