The branch main has been updated by dim:

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

commit fb1c21688c5702d0bc50d67359dee4af12d0c693
Author:     Dimitry Andric <d...@freebsd.org>
AuthorDate: 2022-07-26 11:20:58 +0000
Commit:     Dimitry Andric <d...@freebsd.org>
CommitDate: 2022-07-26 17:59:55 +0000

    Adjust check_struct_sizes() definition to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/dev/smartpqi/smartpqi_helper.c:374:19: error: a function 
declaration without a prototype is deprecated in all versions of C 
[-Werror,-Wstrict-prototypes]
        check_struct_sizes()
                          ^
                           void
    
    This is because check_struct_sizes() 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/dev/smartpqi/smartpqi_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/smartpqi/smartpqi_helper.c 
b/sys/dev/smartpqi/smartpqi_helper.c
index 45d9fca071d3..e6a5f6876b64 100644
--- a/sys/dev/smartpqi/smartpqi_helper.c
+++ b/sys/dev/smartpqi/smartpqi_helper.c
@@ -371,7 +371,7 @@ void pqisrc_display_device_info(pqisrc_softstate_t *softs,
 
 /* validate the structure sizes */
 void
-check_struct_sizes()
+check_struct_sizes(void)
 {
 
     ASSERT(sizeof(SCSI3Addr_struct)== 2);

Reply via email to