[llvm] r341436 - Fix -Wunused-private-variable on non-Windows
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 17:18:05 PDT 2018
Author: rnk
Date: Tue Sep 4 17:18:05 2018
New Revision: 341436
URL: http://llvm.org/viewvc/llvm-project?rev=341436&view=rev
Log:
Fix -Wunused-private-variable on non-Windows
I didn't want to use ifdefs in headers, but I'll do it to pacify a
warning.
Modified:
llvm/trunk/include/llvm/Support/raw_ostream.h
Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=341436&r1=341435&r2=341436&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Tue Sep 4 17:18:05 2018
@@ -369,9 +369,11 @@ class raw_fd_ostream : public raw_pwrite
bool SupportsSeeking;
+#ifdef _WIN32
/// True if this fd refers to a Windows console device. Mintty and other
/// terminal emulators are TTYs, but they are not consoles.
bool IsWindowsConsole = false;
+#endif
std::error_code EC;
More information about the llvm-commits
mailing list