From 354b11c619ea7cbce63703233ce45ad4bfcd6f96 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Tue, 31 Jul 2018 22:36:48 +0100 Subject: [PATCH] onepad|spu2-x: Avoid -Wmissing-braces on clang --- plugins/onepad/SDL/joystick.cpp | 2 +- plugins/onepad_legacy/SDL/joystick.cpp | 2 +- plugins/spu2-x/src/Wavedump_wav.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/onepad/SDL/joystick.cpp b/plugins/onepad/SDL/joystick.cpp index 492a00aaaa..a2b5dfe311 100644 --- a/plugins/onepad/SDL/joystick.cpp +++ b/plugins/onepad/SDL/joystick.cpp @@ -40,7 +40,7 @@ void JoystickInfo::EnumerateJoysticks(std::vector> &vjo return; // WTF! Give me back the control of my system - struct sigaction action = {0}; + struct sigaction action = {}; action.sa_handler = SIG_DFL; sigaction(SIGINT, &action, nullptr); sigaction(SIGTERM, &action, nullptr); diff --git a/plugins/onepad_legacy/SDL/joystick.cpp b/plugins/onepad_legacy/SDL/joystick.cpp index 8ffba0fc70..12d9cbae25 100644 --- a/plugins/onepad_legacy/SDL/joystick.cpp +++ b/plugins/onepad_legacy/SDL/joystick.cpp @@ -52,7 +52,7 @@ void JoystickInfo::EnumerateJoysticks(vector &vjoysticks) if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_EVENTS) < 0) return; // WTF! Give me back the control of my system - struct sigaction action = {0}; + struct sigaction action = {}; action.sa_handler = SIG_DFL; sigaction(SIGINT, &action, NULL); sigaction(SIGTERM, &action, NULL); diff --git a/plugins/spu2-x/src/Wavedump_wav.cpp b/plugins/spu2-x/src/Wavedump_wav.cpp index 1d3bcd7a2a..f65c655e05 100644 --- a/plugins/spu2-x/src/Wavedump_wav.cpp +++ b/plugins/spu2-x/src/Wavedump_wav.cpp @@ -29,7 +29,7 @@ static WavOutFile *_new_WavOutFile(const char *destfile) namespace WaveDump { -static WavOutFile *m_CoreWav[2][CoreSrc_Count] = {NULL}; +static WavOutFile *m_CoreWav[2][CoreSrc_Count]; static const char *m_tbl_CoreOutputTypeNames[CoreSrc_Count] = {