[Bug c/102578] false alarm on noreturn via static function
eggert at cs dot ucla.edu
gcc-bugzilla@gcc.gnu.org
Sun Oct 3 17:31:28 GMT 2021
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 | }
| ^
More information about the Gcc-bugs
mailing list