Browse Source

Fixed build warning

Sam Lantinga 4 years ago
parent
commit
d59a926837
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/hidapi/windows/hid.c

+ 3 - 0
src/hidapi/windows/hid.c

@@ -109,6 +109,9 @@ extern "C" {
 #ifdef _MSC_VER
 	/* Thanks Microsoft, but I know how to use strncpy(). */
 	#pragma warning(disable:4996)
+
+	/* Yes, we have some unreferenced formal parameters */
+	#pragma warning(disable:4100)
 #endif
 
 #ifdef __cplusplus