Commit 0161802a authored by Marius Vlad's avatar Marius Vlad
Browse files

Fix compiler warning: unused variable when building with DEBUG

clients/keyboard.c: In function 'dbg':
clients/keyboard.c:276:6: warning: variable 'l' set but not used [-Wunused-but-set-variable]
  int l;
Signed-off-by: Marius Vlad's avatarMarius Vlad <>
parent acec383b
...@@ -273,11 +273,10 @@ static void __attribute__ ((format (printf, 1, 2))) ...@@ -273,11 +273,10 @@ static void __attribute__ ((format (printf, 1, 2)))
dbg(const char *fmt, ...) dbg(const char *fmt, ...)
{ {
#ifdef DEBUG #ifdef DEBUG
int l;
va_list argp; va_list argp;
va_start(argp, fmt); va_start(argp, fmt);
l = vfprintf(stderr, fmt, argp); vfprintf(stderr, fmt, argp);
va_end(argp); va_end(argp);
#endif #endif
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment