Language
C
Compiler
gcc 13.2.0
Options
Warnings
C11(GNU)
no pedantic
Raw compiler options
-Wextra
$ gcc prog.c -Wall -Wextra -std=gnu11 -Wextra
Exit Code:
0
Author
anonymous
over 1 year ago
C
gcc 13.2.0
Author
anonymous
over 1 year ago
$ gcc prog.c -Wall -Wextra -std=gnu11 -Wextra
prog.c: In function 'foo':
prog.c:5:7: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
5 | return;
| ^~~~~~
prog.c:4:7: note: declared here
4 | int foo (void) {
| ^~~
prog.c: At top level:
prog.c:4:7: warning: 'foo' defined but not used [-Wunused-function]