2 ms·
7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (x) ^~ 9 : note: ...this statement, but the latter is misleadingly indented as i
by gpderetta 10y ago
7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (x)
^~
9 : note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
then();
^~~~
- gravypod 10y agoRelying on compiler-specific features.... where did I hear that before? Oh yea, undefined behavior. Do you like using undefined behavior?
- gpderetta 10y agoThat's just a warning. It has no effect on the generated code. It is perfectly acceptable, and in fact considered proper engineering practice, to compile with multiple compilers to take advantage of their warning and static analysis capabilities.