Follow-up Comment #3, bug #60798 (project make):
I expanded the patch a bit to also silence a _maybe-uninitialized_ error.
With GCC11, there is now only one warning remaining, which is the
_return-local-addr_ warning in src/read.c:2534 (find_percent_cached). The code
is correct, but GCC fails to prove that the final stack-bound allocation (if
applicable) will be copied to the string cache.
(file #52422)
_______________________________________________________
Additional Item Attachment:
File name: SV-60798-Silence-bogus-GCC10-and-GCC11-warnings.patch Size:3 KB
<https://file.savannah.gnu.org/file/SV-60798-Silence-bogus-GCC10-and-GCC11-warnings.patch?file_id=52422>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60798>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/