Project

General

Profile

Actions

Bug #8194

closed

kmfcfg: case value not in enumerated type

Added by Toomas Soome about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-05-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build with gcc 6:

kmfcfg.c:246:3: error: case value '8' not in enumerated type 'KMF_RETURN {aka enum <anonymous>}' [-Werror=switch]
   case KC_ERR_MEMORY:
   ^~~~
kmfcfg.c:249:3: error: case value '9' not in enumerated type 'KMF_RETURN {aka enum <anonymous>}' [-Werror=switch]
   case KC_ERR_ACCESS:
   ^~~~
kmfcfg.c:251:3: error: case value '10' not in enumerated type 'KMF_RETURN {aka enum <anonymous>}' [-Werror=switch]
   case KC_ERR_INSTALL:
   ^~~~
cc1: all warnings being treated as errors

This one is actually more complicated one, as some of the referenced case values are conflicting with values from KMF_RETURN enum. But since the callback is defined to return the int, we will have shortcut there.

Actions

Also available in: Atom PDF