git: 5bdaac89aeec - stable/12 - Adjust dtrace_getf_barrier() definition to avoid clang 15 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Jul 2022 08:58:55 UTC
The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5bdaac89aeeca37c305e1e2af202b2698078aeb7 commit 5bdaac89aeeca37c305e1e2af202b2698078aeb7 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:57:41 +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 cab8c334d082..e9ba857726e9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c @@ -16988,7 +16988,7 @@ dtrace_toxrange_add(uintptr_t base, uintptr_t limit) } static void -dtrace_getf_barrier() +dtrace_getf_barrier(void) { #ifdef illumos /*