mirror of https://github.com/google/benchmark.git
Tabular counters: fix dangling reference to color_output_.
This commit is contained in:
parent
0de985ae9d
commit
cbb2eb83d1
|
@ -41,11 +41,11 @@ bool ConsoleReporter::ReportContext(const Context& context) {
|
|||
PrintBasicContext(&GetErrorStream(), context);
|
||||
|
||||
#ifdef BENCHMARK_OS_WINDOWS
|
||||
if (color_output_ && &std::cout != &GetOutputStream()) {
|
||||
if ((output_options_ & OO_Color) && &std::cout != &GetOutputStream()) {
|
||||
GetErrorStream()
|
||||
<< "Color printing is only supported for stdout on windows."
|
||||
" Disabling color printing\n";
|
||||
color_output_ = false;
|
||||
output_options_ &= ~OO_Color;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue