Fix the unused argument problem here a different way - cast to void.
authorEric Christopher <echristo@apple.com>
Wed, 14 Oct 2009 21:45:49 +0000 (21:45 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 14 Oct 2009 21:45:49 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84147 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/raw_ostream.h

index 30879b89dabe69f38a081258492f9744ed541524..bd22be30b90116c3f17984bb297f37da926a327a 100644 (file)
@@ -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.