hidapi: silence redefinition warnings

This commit is contained in:
Ozkan Sezer
2023-06-02 14:36:14 +03:00
committed by Sam Lantinga
parent f082c68b2f
commit 3ecdbf27cc
3 changed files with 97 additions and 7 deletions

View File

@@ -598,7 +598,7 @@ int HID_API_EXPORT hid_init(void)
/* Set the locale if it's not set. */
locale = setlocale(LC_CTYPE, NULL);
if (!locale)
setlocale(LC_CTYPE, "");
(void) setlocale(LC_CTYPE, "");
}
return 0;