diff options
author | Eric Christopher <echristo@apple.com> | 2009-10-14 21:45:49 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-10-14 21:45:49 +0000 |
commit | 7a8a05b3408cffa5458f1407d0e4623855c40689 (patch) | |
tree | 8c000eedbb2eb8e78dca880fc75c53bffc8bdb23 /include | |
parent | b3642dcceeff3ff4045271c87105b5bfbf44c489 (diff) | |
download | llvm-7a8a05b3408cffa5458f1407d0e4623855c40689.tar.gz llvm-7a8a05b3408cffa5458f1407d0e4623855c40689.tar.bz2 llvm-7a8a05b3408cffa5458f1407d0e4623855c40689.tar.xz |
Fix the unused argument problem here a different way - cast to void.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 30879b89da..bd22be30b9 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -233,7 +233,9 @@ public: /// @param bold bold/brighter text, default false /// @param bg if true change the background, default: change foreground /// @returns itself so it can be used within << invocations - virtual raw_ostream &changeColor(enum Colors, bool, bool) { return *this; } + virtual raw_ostream &changeColor(enum Colors, bool bold = false, + bool bg = false) + { (void)bold; (void)bg; return *this; } /// Resets the colors to terminal defaults. Call this when you are done /// outputting colored text, or before program exit. |