https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104731

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #1)
> Either we need to embed the global dirent into a larger structure with
> trailing storage for the file name,

And then we'd still need to disable that warning, because it will still
complain that we're writing to the d_name[1] array, even if there is actually
space available after that array.

So I think just using a target selector for the test is probably the right
answer.

Reply via email to