OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-82-gfe64ddd
Gerrit Code Review
gerrit@openafs.org
Sat, 4 Sep 2021 18:32:01 -0400
The following commit has been merged in the master branch:
commit fe64ddd3b49bf15222d32d443ff226dd4c2b899e
Author: Michael Meffie <mmeffie@sinenomine.net>
Date: Tue Aug 24 16:40:22 2021 -0400
ptserver: Fix CreateEntry() mismatched array parameter warning
The CreateEntry() prototype does not match the function definition. The
aname parameter is declared as an unbounded array in the prototype but
is defined as a bounded array. As of GCC 12, a warning is issued for the
mismatch.
error: argument 2 of type ‘char[64]’ with mismatched bound
[-Werror=array-parameter=]
CreateEntry(struct ubik_trans *at, char aname[PR_MAXNAMELEN], ...
note: previously declared as ‘char[]’
extern afs_int32 CreateEntry(struct ubik_trans *at, char aname[], ...
Fix the prototype to declare the 'aname' parameter as a bounded array as
expected for this function.
Change-Id: I6d4dadcdd3f80c2b6f1b17670bbbc1e9e6076559
Reviewed-on: https://gerrit.openafs.org/14768
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/ptserver/ptprototypes.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
OpenAFS Master Repository