mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-08 09:33:16 +00:00
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
This commit is contained in:
parent
a0c55bac79
commit
939cb349b2
@ -91,7 +91,7 @@ db_get_line(void)
|
||||
}
|
||||
|
||||
static void
|
||||
db_flush_line()
|
||||
db_flush_line(void)
|
||||
{
|
||||
db_lp = db_line;
|
||||
db_endlp = db_line;
|
||||
|
Loading…
x
Reference in New Issue
Block a user