[llvm-commits] [llvm] r84147 - /llvm/trunk/include/llvm/Support/raw_ostream.h
Eric Christopher
echristo at apple.com
Wed Oct 14 14:45:49 PDT 2009
Author: echristo
Date: Wed Oct 14 16:45:49 2009
New Revision: 84147
URL: http://llvm.org/viewvc/llvm-project?rev=84147&view=rev
Log:
Fix the unused argument problem here a different way - cast to void.
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=84147&r1=84146&r2=84147&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Wed Oct 14 16:45:49 2009
@@ -233,7 +233,9 @@
/// @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.
More information about the llvm-commits
mailing list