Re: [committed] analyzer: fix missing -Wanalyzer-write-to-const [PR102695]

2021-11-17 Thread Martin Sebor via Gcc-patches
On 11/16/21 7:05 PM, David Malcolm via Gcc-patches wrote: This patch fixes -Wanalyzer-write-to-const so that it will complain about attempts to write to functions, to labels. It also "teaches" the analyzer about strchr, in that strchr can either return a pointer into the input area (and thus -Wan

[committed] analyzer: fix missing -Wanalyzer-write-to-const [PR102695]

2021-11-16 Thread David Malcolm via Gcc-patches
This patch fixes -Wanalyzer-write-to-const so that it will complain about attempts to write to functions, to labels. It also "teaches" the analyzer about strchr, in that strchr can either return a pointer into the input area (and thus -Wanalyzer-write-to-const can now complain about writes into a s