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

--- Comment #10 from Alejandro Colomar <alx at kernel dot org> ---
(In reply to Harald van Dijk from comment #9)
> If you want to make the argument that there is no unterminated string
> because there is no string in the first place, then the logical conclusion
> is still that  -Wunterminated-string-initialization should not warn about
> that.
> 
> If you want a warning for something other than unterminated strings, that
> should be a different warning, not -Wunterminated-string-initialization.

I don't oppose that.  I suggested that possibility in
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116082#c3>.  However, I'm not
sure it's worth a separate diagnostic, considering that it's easier to just
rely on Wusi.  But if anyone feels like implementing that, I'm okay with it.

Reply via email to