From 94627df5def2ce0b8dc21afe1a960116e4e8c303 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 3 Mar 2012 16:25:55 -0500 Subject: [PATCH] Portability - Fixed compiler warnings on Ubuntu. --- src/commands/CmdCustom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index 325b1d1b7..d81fdecde 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -131,10 +131,12 @@ int CmdCustom::execute (std::string& output) // TODO Consider rc.verbose int table_header = 0; if (context.verbose ("label")) + { if (context.color () && context.config.getBoolean ("fontunderline")) table_header = 1; // Underlining doesn't use extra line. else table_header = 2; // Dashes use an extra line. + } // Report output can be limited by rows or lines. int maxrows = 0;