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]
This commit is contained in:
Ludovic Rousseau
2012-09-21 11:05:26 +02:00
committed by Alan Ott
parent 6761e3f5ba
commit 61757847c4
+1
View File
@@ -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;