mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-18 10:34:30 -04:00
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:
committed by
Alan Ott
parent
6761e3f5ba
commit
61757847c4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user