base: fix warning in console.cc

This commit is contained in:
Norman Feske 2015-11-04 13:47:25 +01:00
parent 91345a1568
commit 82991ba378
1 changed files with 7 additions and 13 deletions

View File

@ -54,13 +54,13 @@ class Format_command
public:
Type type; /* format argument type */
Length length; /* format argument length */
int padding; /* min number of characters to print */
int base; /* base of numeric arguments */
int zeropad : 1; /* pad with zero instead of space */
int uppercase : 1; /* use upper case for hex numbers */
int consumed; /* nb of consumed format string characters */
Type type = INVALID; /* format argument type */
Length length = DEFAULT; /* format argument length */
int padding = 0; /* min number of characters to print */
int base = 10; /* base of numeric arguments */
bool zeropad = false; /* pad with zero instead of space */
bool uppercase = false; /* use upper case for hex numbers */
int consumed = 0; /* nb of consumed format string chars */
/**
* Constructor
@ -69,12 +69,6 @@ class Format_command
*/
explicit Format_command(const char *format)
{
consumed = 0;
uppercase = 0;
base = 10;
type = INVALID;
length = DEFAULT;
/* check for command begin and eat the character */
if (format[consumed] != '%') return;
if (!format[++consumed]) return;