Language
C
Compiler
clang 9.0.0
Options
Warnings
C11(GNU)
no pedantic
Raw compiler options
-Werror
$ clang prog.c -Wall -Wextra -std=gnu11 -Werror
Exit Code:
1
Author
anonymous
over 5 years ago
C
clang 9.0.0
Author
anonymous
over 5 years ago
$ clang prog.c -Wall -Wextra -std=gnu11 -Werror
prog.c:9:16: error: format specifies type 'int *' but the argument has type 'unsigned char *' [-Werror,-Wformat]
scanf("%d",&x);
~~ ^~
%s
prog.c:11:16: error: format specifies type 'int *' but the argument has type 'unsigned char *' [-Werror,-Wformat]
scanf("%d",&y);
~~ ^~
%s
2 errors generated.