mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
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;
|
||||
|
||||
const char *class;
|
||||
int class_clr;
|
||||
const char *class = "abcd";
|
||||
int class_clr = 0;
|
||||
switch (log_class) {
|
||||
case LOG_CLASS_ERROR: class = " err"; class_clr = 31; break;
|
||||
case LOG_CLASS_WARNING: class = "warn"; class_clr = 33; break;
|
||||
|
|
Loading…
Add table
Reference in a new issue