Language
C
Compiler
clang 7.1.0
Options
Warnings
C99
-pedantic-errors
$ clang prog.c -Wall -Wextra -std=c99 -pedantic-errors
kill!
Exit Code:
0
Author
anonymous
over 3 years ago
C
clang 7.1.0
Author
anonymous
over 3 years ago
$ clang prog.c -Wall -Wextra -std=c99 -pedantic-errors
prog.c:7:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (murder = true) {
~~~~~~~^~~~~~
prog.c:7:16: note: place parentheses around the assignment to silence this warning
if (murder = true) {
^
( )
prog.c:7:16: note: use '==' to turn this assignment into an equality comparison
if (murder = true) {
^
==
1 warning generated.
kill!