diff options
| author | Reid Kleckner <rnk@google.com> | 2018-09-05 00:18:05 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2018-09-05 00:18:05 +0000 |
| commit | 93c62d8f7a1798e3fa945566de90ef2b834dd7b9 (patch) | |
| tree | a3eceda740213da192275edb73562accaa39fd46 /llvm | |
| parent | 9fbedcad71c8e907f3b3af7eb569e8a2d7d0895b (diff) | |
| download | bcm5719-llvm-93c62d8f7a1798e3fa945566de90ef2b834dd7b9.tar.gz bcm5719-llvm-93c62d8f7a1798e3fa945566de90ef2b834dd7b9.zip | |
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.
llvm-svn: 341436
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/raw_ostream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/raw_ostream.h b/llvm/include/llvm/Support/raw_ostream.h index 458b0998e82..9a86f3a371e 100644 --- a/llvm/include/llvm/Support/raw_ostream.h +++ b/llvm/include/llvm/Support/raw_ostream.h @@ -369,9 +369,11 @@ class raw_fd_ostream : public raw_pwrite_stream { 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; |

