Author
anonymous
over 6 years ago
Language
C
Compiler
gcc 8.2.0
Options
Warnings
C11(GNU)
no pedantic
Author
anonymous
over 6 years ago
$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:4:23: warning: pointer targets in initialization of 'signed char *' from 'char *' differ in signedness [-Wpointer-sign]
signed char *sc = ptr;
^~~
prog.c:5:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign]
unsigned char *uc = ptr;
^~~
prog.c:5:20: warning: unused variable 'uc' [-Wunused-variable]
unsigned char *uc = ptr;
^~
prog.c:4:18: warning: unused variable 'sc' [-Wunused-variable]
signed char *sc = ptr;
^~
prog.c:4:18: warning: 'ptr' is used uninitialized in this function [-Wuninitialized]
signed char *sc = ptr;
^~
Exit Code:
0