mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 15:30:07 +00:00
c5db00dc30
Building Glibc with the latest GCC 11 shows a number of instances of the new -Warray-parameter warning designed to encourage consistency in the forms of array arguments in redeclarations of the same function (and, ultimately, to enable the detection of out of bounds accesses via such arguments). To avoid the subset of these warnings for the RPC APIs, this patch changes the declarations of these functions to match both their definitions and the Oracle RPC documentation. Besides avoiding the -Warray-parameter warnings the effect of this change is for GCC to issue warnings when either the functions are passed an array with fewer than MAXNETNAMELEN + 1 elements, or when the functions themselves access elements outside the array bounds. |
||
---|---|---|
.. | ||
auth_des.h | ||
auth_unix.h | ||
auth.h | ||
clnt.h | ||
des_crypt.h | ||
key_prot.h | ||
pmap_clnt.h | ||
pmap_prot.h | ||
pmap_rmt.h | ||
rpc_des.h | ||
rpc_msg.h | ||
rpc.h | ||
svc_auth.h | ||
svc.h | ||
types.h | ||
xdr.h |