https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115736
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Analyzer is sensitive to |Analyzer is sensitive to |printf argument for |printf argument (or puts |-Wanalyzer-unsafe-call-with |does not warn) for |in-signal-handler |-Wanalyzer-unsafe-call-with | |in-signal-handler Last reconfirmed| |2024-07-01 Status|UNCONFIRMED |NEW Keywords| |diagnostic Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Most likely puts is not on the list of unsafe functions. That is GCC changes `printf("uh\n");` into `puts("uh");` early on before Analyzer . Confirmed.