OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-99-g3f64fac
Gerrit Code Review
gerrit@openafs.org
Tue, 28 Jan 2025 13:45:53 -0500
The following commit has been merged in the master branch:
commit 3f64facc10e34145f316decf19e24665682f8db9
Author: GANESH CHAUDHARI <gangovind@in.ibm.com>
Date: Wed Jan 15 16:31:35 2025 -0500
DARWIN: Skip NULL func ptrs in osi_vnodeops.c
In recent versions of Xcode (around the release of macOS 14), clang now
reports these former warnings as errors:
src/afs/DARWIN/osi_vnodeops.c:163:12:
error: incompatible function pointer types initializing
'int (*)(void*)' with an expression of type 'void (*)()'
[-Wincompatible-function-pointer-types]
{NULL, (void (*)())NULL}
^~~~~~~~~~~~~~~~
src/afs/DARWIN/osi_vnodeops.c:206:12:
error: incompatible function pointer types initializing
'int (*)(void*)' with an expression of type 'void (*)()'
[-Wincompatible-function-pointer-types]
{NULL, (void (*)())NULL}
^~~~~~~~~~~~~~~~
To avoid these errors, simply do not specify the function pointer, and
let the rest of the struct value get filled in with zeroes.
Also specify a return type for afs_vop_pathconf(), to avoid this error
(which clang formerly flagged as a warning):
src/afs/DARWIN/osi_vnodeops.c:1841:1:
error: type specifier missing, defaults to 'int'; ISO C99 and
later do not support implicit int [-Wimplicit-int]
afs_vop_pathconf(ap)
^
[mvitale, adeason: commit message details]
Change-Id: Ie856ce059ddb2cf249447b517f66839e35ee5638
Reviewed-on: https://gerrit.openafs.org/16138
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/DARWIN/osi_vnodeops.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--
OpenAFS Master Repository