Language
C
Compiler
gcc 8.3.0
Options
Warnings
C11(GNU)
no pedantic
$ gcc prog.c -Wall -Wextra -std=gnu11
Exit Code:
0
Author
anonymous
over 5 years ago
C
gcc 8.3.0
Author
anonymous
over 5 years ago
$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:7:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (i=0) {
^
prog.c:4:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
~~~~^~~~
prog.c:4:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
~~~~~~~^~~~