The values are the same and this is ABI so they will never change. Make the
cast explicit for coverity's benefit.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
const char *format,
va_list args)
{
- enum libinput_log_priority p = priority;
-
switch (priority) {
/* We don't use this if we're logging through libinput */
default:
break;
}
- ctx->log_handler(ctx->libinput, p, format, args);
+ ctx->log_handler(ctx->libinput,
+ (enum libinput_log_priority)priority,
+ format,
+ args);
}
LIBINPUT_ATTRIBUTE_PRINTF(3, 4)
va_list args)
{
FILE *out = stdout;
- enum quirks_log_priorities p = priority;
+ enum quirks_log_priorities p = (enum quirks_log_priorities)priority;
char buf[256] = {0};
const char *prefix = "";