forked from external/yambar
log: ensure variables are always initialized. Fixes gcc warning
This commit is contained in:
parent
e711a6f103
commit
410b7635d7
1 changed files with 2 additions and 2 deletions
4
log.c
4
log.c
|
@ -12,8 +12,8 @@ _log(enum log_class log_class, const char *module, const char *file, int lineno,
|
||||||
{
|
{
|
||||||
bool colorize = true;
|
bool colorize = true;
|
||||||
|
|
||||||
const char *class;
|
const char *class = "abcd";
|
||||||
int class_clr;
|
int class_clr = 0;
|
||||||
switch (log_class) {
|
switch (log_class) {
|
||||||
case LOG_CLASS_ERROR: class = " err"; class_clr = 31; break;
|
case LOG_CLASS_ERROR: class = " err"; class_clr = 31; break;
|
||||||
case LOG_CLASS_WARNING: class = "warn"; class_clr = 33; break;
|
case LOG_CLASS_WARNING: class = "warn"; class_clr = 33; break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue