[Bug tree-optimization/107395] Missed warning opportunity on builtin string optimization
nrk at disroot dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 25 19:41:07 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107395
--- Comment #2 from nrk at disroot dot org ---
That c++ warning is unrelated to the bug report, it's warning about
initialization; which you can easily replace them with { 'h' } and { 'h', 'i' }
to silence; but not warning about the fact that non-null-terminated byte array
is being passed to function which expects a string.
https://godbolt.org/z/o3ov5qEoa
More information about the Gcc-bugs
mailing list