Created
August 1, 2018 07:29
-
-
Save sonOfRa/a5d3e75c478f790dac7f50133f1c4255 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
| simon@odin-linux ~ g++ -Wall test.cpp | |
| test.cpp: In function ‘int main(int, const char**)’: | |
| test.cpp:4:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] | |
| if (0) | |
| ^~ | |
| test.cpp:6:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ | |
| std::cout << "blah" << std::endl; | |
| ^~~ |
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
| #include <iostream> | |
| int main(int argc, const char **argv) { | |
| if (0) | |
| std::cout << "blah" << std::endl; | |
| std::cout << "blah" << std::endl; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment