HomeFreeBSD

Adjust db_flush_line() definition to avoid clang 15 warning

Description

Adjust db_flush_line() definition to avoid clang 15 warning

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

sys/ddb/db_lex.c:94:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
db_flush_line()
             ^
              void

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

MFC after: 3 days

(cherry picked from commit 939cb349b2ca4d3fcdc72ab1258eadee5e54881c)

Details

Provenance
dimAuthored on Jul 19 2022, 6:31 PM
Parents
rG8281969c16c0: Adjust profile_unload() definition to avoid clang 15 warning
Branches
Unknown
Tags
Unknown