https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102578
--- Comment #2 from eggert at cs dot ucla.edu --- Created attachment 51539 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51539&action=edit false alarm with 'gcc -O2 -S -Wreturn-type' Attached is the third and final example I got from Coreutils today. When I compile it it with 'gcc -O2 -S -Wreturn-type' I get the following false alarm: noreturn2.c: In function ‘find_int’: noreturn2.c:15:1: warning: control reaches end of non-void function [-Wreturn-type] 15 | } | ^