-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b131
-
generic
-
generic
Most annoying code snippet ever:
void CompileTask::print_tty() {
ttyLocker ttyl; // keep the following output all in one block
// print compiler name if requested
if (CIPrintCompilerName) tty->print("%s:", CompileBroker::compiler_name(comp_level()));
print(tty);
}
The indent of print "suggests" it is under the if but of course it's not. Use braces!
void CompileTask::print_tty() {
ttyLocker ttyl; // keep the following output all in one block
// print compiler name if requested
if (CIPrintCompilerName) tty->print("%s:", CompileBroker::compiler_name(comp_level()));
print(tty);
}
The indent of print "suggests" it is under the if but of course it's not. Use braces!