From bc8ace9917328f506501711907739584de44515f Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Mon, 14 Sep 2020 19:34:39 -0300 Subject: gc_adapter: Disable MSVC nonstandard extension warning on libusb.h Pragma disable zero-sized array nonstandard extension warning on MSVC. --- src/input_common/gcadapter/gc_adapter.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp index c6c423c4b..c507c9891 100644 --- a/src/input_common/gcadapter/gc_adapter.cpp +++ b/src/input_common/gcadapter/gc_adapter.cpp @@ -4,7 +4,16 @@ #include #include + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4200) // nonstandard extension used : zero-sized array in struct/union +#endif #include +#ifdef _MSC_VER +#pragma warning(pop) +#endif + #include "common/logging/log.h" #include "input_common/gcadapter/gc_adapter.h" -- cgit v1.2.3