Portability

- Fixed compiler warnings on Ubuntu.
This commit is contained in:
Paul Beckingham 2012-03-03 16:25:55 -05:00
parent 761ef296ad
commit 94627df5de

View file

@ -131,10 +131,12 @@ int CmdCustom::execute (std::string& output)
// TODO Consider rc.verbose // TODO Consider rc.verbose
int table_header = 0; int table_header = 0;
if (context.verbose ("label")) if (context.verbose ("label"))
{
if (context.color () && context.config.getBoolean ("fontunderline")) if (context.color () && context.config.getBoolean ("fontunderline"))
table_header = 1; // Underlining doesn't use extra line. table_header = 1; // Underlining doesn't use extra line.
else else
table_header = 2; // Dashes use an extra line. table_header = 2; // Dashes use an extra line.
}
// Report output can be limited by rows or lines. // Report output can be limited by rows or lines.
int maxrows = 0; int maxrows = 0;