[Bug c/107730] Trivial -Wreturn-type false positive when function marked static

2022-11-16 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107730

Sam James  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #3 from Sam James  ---
hm, wait, sorry. It should still emit the warning even without static? Or am I
missing something?

[Bug c/107730] Trivial -Wreturn-type false positive when function marked static

2022-11-16 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107730

Sam James  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #2 from Sam James  ---
oh, duh, I'd missed the *.

[Bug c/107730] Trivial -Wreturn-type false positive when function marked static

2022-11-16 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107730

--- Comment #1 from Sam James  ---
Note that if I drop 'static', the warning goes away. Clang does not warn at
all.