onepad|spu2-x: Avoid -Wmissing-braces on clang

This commit is contained in:
Jonathan Li 2018-07-31 22:36:48 +01:00
parent c10d6c3ed1
commit 354b11c619
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ void JoystickInfo::EnumerateJoysticks(std::vector<std::unique_ptr<GamePad>> &vjo
return; return;
// WTF! Give me back the control of my system // WTF! Give me back the control of my system
struct sigaction action = {0}; struct sigaction action = {};
action.sa_handler = SIG_DFL; action.sa_handler = SIG_DFL;
sigaction(SIGINT, &action, nullptr); sigaction(SIGINT, &action, nullptr);
sigaction(SIGTERM, &action, nullptr); sigaction(SIGTERM, &action, nullptr);

View File

@ -52,7 +52,7 @@ void JoystickInfo::EnumerateJoysticks(vector<GamePad *> &vjoysticks)
if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_EVENTS) < 0) if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_EVENTS) < 0)
return; return;
// WTF! Give me back the control of my system // WTF! Give me back the control of my system
struct sigaction action = {0}; struct sigaction action = {};
action.sa_handler = SIG_DFL; action.sa_handler = SIG_DFL;
sigaction(SIGINT, &action, NULL); sigaction(SIGINT, &action, NULL);
sigaction(SIGTERM, &action, NULL); sigaction(SIGTERM, &action, NULL);

View File

@ -29,7 +29,7 @@ static WavOutFile *_new_WavOutFile(const char *destfile)
namespace WaveDump 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] = static const char *m_tbl_CoreOutputTypeNames[CoreSrc_Count] =
{ {