From 61757847c4e3eb78de42bfc09ac1ce4e98d26f3d Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 21 Sep 2012 11:05:26 +0200 Subject: [PATCH] Linux: Fix warning: enumeration value not handled in switch hid.c:282:5: warning: enumeration value 'DEVICE_STRING_COUNT' not handled in switch [-Wswitch-enum] --- linux/hid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/hid.c b/linux/hid.c index a19fb46..535b99a 100644 --- a/linux/hid.c +++ b/linux/hid.c @@ -292,6 +292,7 @@ static int get_device_string(hid_device *dev, enum device_string_id key, wchar_t ret = mbstowcs(string, serial_number_utf8, maxlen); ret = (ret == (size_t)-1)? -1: 0; break; + case DEVICE_STRING_COUNT: default: ret = -1; break;