From 25b7bf6a9750f92bd75850740002d32dcf08470e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 25 Oct 2018 03:38:09 +0200 Subject: tracker/wii: fix for mingw-w64 The module loses auto-pairing functionality, but it's at least useful to see GCC warnings. I don't intend to use GCC for actually running the module. Fix some warnings emitted by GCC, such as - memset(3) of non-POD struct - depending on "new T[0]" to return a null pointer - dependence on MSVC-specific pragmas for external libraries - lack of header guards - unintended usage of trigraph syntax Disable some GCC warnings for the "wiiyourself" library. It's not possible to patch it up, the code quality is that awful. Disable the builtin debug functionality since it depends on non-standard __VA_OPT__ (due in C++20). It's not possible to disable the warning emitted on the __VA_ARGS__ usage in GCC. --- tracker-wii/wiiyourself/wiimote_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tracker-wii/wiiyourself/wiimote_common.h') diff --git a/tracker-wii/wiiyourself/wiimote_common.h b/tracker-wii/wiiyourself/wiimote_common.h index c0fd01e1..9934d6ec 100644 --- a/tracker-wii/wiiyourself/wiimote_common.h +++ b/tracker-wii/wiiyourself/wiimote_common.h @@ -1,3 +1,5 @@ +#pragma once + // _______________________________________________________________________________ // // - WiiYourself! - native C++ Wiimote library v1.15 RC -- cgit v1.2.3