https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78203
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to fwd from comment #2) > Well, with optimization -O2 the "optimistic constant propagation" is > performed and the return value is constant. > Nevertheless, I think the warning should be given, at least with > '-Wpedantic'. No -Wpedantic for pedantic language standard warnings but for other warnings.