Last active
November 15, 2017 18:03
-
-
Save gavinanderegg/0136ee42c7d4ce810c560443dfc43499 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(int argc, char** argv) { | |
int a; | |
int b; | |
a = b = 1; | |
a == b; | |
return 0; | |
} | |
/* | |
$ gcc test.cpp | |
test.cpp:7:4: warning: equality comparison result unused [-Wunused-comparison] | |
a == b; | |
~~^~~~ | |
test.cpp:7:4: note: use '=' to turn this equality comparison into an assignment | |
a == b; | |
^~ | |
= | |
1 warning generated. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment