Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2022 08:58:13 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d59834c8c615 - stable/13 - Adjust dtrace_getf_barrier() definition to avoid clang 15 warning
Message-ID:  <202207230858.26N8wD2S012526@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim:

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

commit d59834c8c615c0edeed9940d46aa69c0f4bb8328
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-19 18:46:18 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-23 08:56:43 +0000

    Adjust dtrace_getf_barrier() definition to avoid clang 15 warning
    
    With clang 15, the following -Werror warnings is produced:
    
        sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c:17019:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        dtrace_getf_barrier()
                           ^
                            void
    
    This is because dtrace_getf_barrier() 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 bd0e3cc2e71079f54785b7a395faf3a66426936e)
---
 sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
index 75129eccc251..8163b85a8202 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
@@ -17013,7 +17013,7 @@ dtrace_toxrange_add(uintptr_t base, uintptr_t limit)
 }
 
 static void
-dtrace_getf_barrier()
+dtrace_getf_barrier(void)
 {
 #ifdef illumos
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207230858.26N8wD2S012526>