Re: [PATCH 1/1] fs/qnx6: Fix building with GCC 15
From: Brahmajit
Date: Fri Oct 04 2024 - 16:16:27 EST
On 04.10.2024 19:44, Al Viro wrote:
> LGTM, except that I'd probably make the commit message less warning-centric -
> something like
> ...
> would explain what was really going on - the point is not to make gcc STFU, it's
> to make the code more straightforward. The warning is basically "it smells
> somewhat fishy around >here<, might be worth taking a look". And yes, it turned
> out to be fishy; minimal "make it STFU" would be to strip those NULs from
> the initializers (i.e. just go for static char match_root[2][3] = {".", ".."}; -
> an array initializer is zero-padded if it's shorter than the array), but that
> wasn't the only, er, oddity in that code.
Thank you very much for the feedback, sending the patch with updates
commit shortly.
--
Regards,
listout