git: 939cb349b2ca - main - Adjust db_flush_line() definition to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 19 Jul 2022 19:13:44 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=939cb349b2ca4d3fcdc72ab1258eadee5e54881c

commit 939cb349b2ca4d3fcdc72ab1258eadee5e54881c
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-19 18:31:08 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-19 18:37:15 +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
---
 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 215e7cd7f2ab..ec78ff299fb7 100644
--- a/sys/ddb/db_lex.c
+++ b/sys/ddb/db_lex.c
@@ -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;