Author
anonymous
almost 4 years ago
Language
C
Compiler
gcc 10.1.0
Options
Warnings
C11
no pedantic
Author
anonymous
almost 4 years ago
$ gcc prog.c -Wall -Wextra -std=c11
prog.c: In function 'main':
prog.c:6:14: warning: unused parameter 'argc' [-Wunused-parameter]
6 | int main(int argc, char *argv[])
| ~~~~^~~~
prog.c:6:26: warning: unused parameter 'argv' [-Wunused-parameter]
6 | int main(int argc, char *argv[])
| ~~~~~~^~~~~~
prog.c: At top level:
prog.c:14:12: error: static declaration of 'a' follows non-static declaration
14 | static int a = 10;
| ^
prog.c:4:12: note: previous declaration of 'a' was here
4 | extern int a;
| ^
prog.c:14:12: warning: 'a' defined but not used [-Wunused-variable]
14 | static int a = 10;
| ^
Exit Code:
1