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