Language
C
Compiler
gcc 13.2.0
Options
Warnings
C11
-pedantic
$ gcc prog.c -Wall -Wextra -std=c11 -pedantic
Exit Code:
0
Author
anonymous
24 days ago
C
gcc 13.2.0
Author
anonymous
24 days ago
$ gcc prog.c -Wall -Wextra -std=c11 -pedantic
prog.c: In function 'main':
prog.c:5:12: warning: overflow in conversion from 'int' to 'char' changes value from '1000' to '-24' [-Woverflow]
5 | s[1] = 1000;
| ^~~~
prog.c:3:10: warning: variable 's' set but not used [-Wunused-but-set-variable]
3 | char s[10];
| ^