mirror of
https://github.com/google/benchmark.git
synced 2024-11-26 16:31:54 +00:00
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);
|
PrintBasicContext(&GetErrorStream(), context);
|
||||||
|
|
||||||
#ifdef BENCHMARK_OS_WINDOWS
|
#ifdef BENCHMARK_OS_WINDOWS
|
||||||
if (color_output_ && &std::cout != &GetOutputStream()) {
|
if ((output_options_ & OO_Color) && &std::cout != &GetOutputStream()) {
|
||||||
GetErrorStream()
|
GetErrorStream()
|
||||||
<< "Color printing is only supported for stdout on windows."
|
<< "Color printing is only supported for stdout on windows."
|
||||||
" Disabling color printing\n";
|
" Disabling color printing\n";
|
||||||
color_output_ = false;
|
output_options_ &= ~OO_Color;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue