]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Avoid incomplete function type in casts
authorBenjamin Kaduk <kaduk@mit.edu>
Sun, 3 Feb 2019 00:39:53 +0000 (18:39 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Sun, 26 Jan 2020 17:53:58 +0000 (12:53 -0500)
commit1b704df8db4c7e2191b3683c03590aeb663af2f8
tree8467bb75846ab92ae10e89703a5afc1789160e29
parent64d0352df1406d9601d6d772555c4c39efc05d7e
Avoid incomplete function type in casts

clang complains that these casts contain an incomplete function type
(since the function argument is omitted rather than declared to be
void).  Since we just need the cast to pointer type, let the compiler
do it implicitly and pass stock NULL, rather than trying to force a
cast to function-pointer type.

Reviewed-on: https://gerrit.openafs.org/13473
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 96c0b88947c7aab605170bdca633d3716051a58e)

Change-Id: I950ff8de925a1ca03e50ad7ec394123445b5ce4a
Reviewed-on: https://gerrit.openafs.org/13742
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/fsprobe/fsprobe.c
src/rx/rx.c
src/xstat/xstat_fs.c