Fixed build warnings

This commit is contained in:
Sam Lantinga 2020-03-12 19:49:33 -07:00
parent c44473ba73
commit 5722e88481
1 changed files with 0 additions and 2 deletions

View File

@ -405,13 +405,11 @@ GetDeviceInfo(IOHIDDeviceRef hidDevice, recDevice *pDevice)
Sint32 product = 0; Sint32 product = 0;
Sint32 version = 0; Sint32 version = 0;
char *name; char *name;
const char *manufacturer_remapped;
char manufacturer_string[256]; char manufacturer_string[256];
char product_string[256]; char product_string[256];
CFTypeRef refCF = NULL; CFTypeRef refCF = NULL;
CFArrayRef array = NULL; CFArrayRef array = NULL;
Uint16 *guid16 = (Uint16 *)pDevice->guid.data; Uint16 *guid16 = (Uint16 *)pDevice->guid.data;
int i;
/* get usage page and usage */ /* get usage page and usage */
refCF = IOHIDDeviceGetProperty(hidDevice, CFSTR(kIOHIDPrimaryUsagePageKey)); refCF = IOHIDDeviceGetProperty(hidDevice, CFSTR(kIOHIDPrimaryUsagePageKey));