Fix the unused argument problem here a different way - cast to void.

llvm-svn: 84147
This commit is contained in:
Eric Christopher 2009-10-14 21:45:49 +00:00
parent cfcf6bc70d
commit 4abb36b946
1 changed files with 3 additions and 1 deletions

View 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.