git: ae953161afc4 - stable/12 - Adjust db_flush_line() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Jul 2022 08:59:00 UTC
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ae953161afc40f6b4df27e06f7940ea375f073ec commit ae953161afc40f6b4df27e06f7940ea375f073ec Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-19 18:31:08 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-07-23 08:57:42 +0000 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) --- sys/ddb/db_lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ddb/db_lex.c b/sys/ddb/db_lex.c index 8e25cc898fc1..6be2638cef37 100644 --- a/sys/ddb/db_lex.c +++ b/sys/ddb/db_lex.c @@ -90,7 +90,7 @@ db_get_line(void) } static void -db_flush_line() +db_flush_line(void) { db_lp = db_line; db_endlp = db_line;