Language
C
Compiler
clang 7.0.0
Options
Warnings
C11(GNU)
-pedantic-errors
$ clang prog.c -Wall -Wextra -std=gnu11 -pedantic-errors
Exit Code:
1
Author
anonymous
over 6 years ago
C
clang 7.0.0
Author
anonymous
over 6 years ago
$ clang prog.c -Wall -Wextra -std=gnu11 -pedantic-errors
prog.c:4:18: error: initializing 'signed char *' with an expression of type 'char *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign]
signed char *sc = ptr;
^ ~~~
prog.c:5:20: error: initializing 'unsigned char *' with an expression of type 'char *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign]
unsigned char *uc = ptr;
^ ~~~
2 errors generated.