Skip to content
Commit bf9688e6 authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

cdefs: Drop access attribute for _FORTIFY_SOURCE=3 (BZ #31383)



When passed a pointer to a zero-sized struct, the access attribute
without the third argument misleads -Wstringop-overflow diagnostics to
think that a function is writing 1 byte into the zero-sized structs.
The attribute doesn't add that much value in this context, so drop it
completely for _FORTIFY_SOURCE=3.

Resolves: BZ #31383
Signed-off-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent b53e73ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment