https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71943
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think it is fine to warn, -Wreturn* warning is done early before optimizations (intentionally), so unreachable code that might not be yet optimized away yet may confuse it. Don't put unreachable code after return and the warning will go away.