Language
C
Compiler
gcc 10.1.0
Options
Warnings
Optimization
C99
-pedantic
$ gcc prog.c -Wall -Wextra -O2 -march=native -std=c99 -pedantic
0
Exit Code:
0
Author
anonymous
about 4 years ago
C
gcc 10.1.0
Author
anonymous
about 4 years ago
$ gcc prog.c -Wall -Wextra -O2 -march=native -std=c99 -pedantic
prog.c: In function 'fun':
prog.c:6:12: warning: function returns address of local variable [-Wreturn-local-addr]
6 | return ret;
| ^~~
prog.c:4:9: note: declared here
4 | int x = 43;
| ^
prog.c: In function 'main':
prog.c:11:5: warning: 'x' is used uninitialized in this function [-Wuninitialized]
11 | printf("%d", *r);
| ^~~~~~~~~~~~~~~~
0