evdev: Don't initialize struct sigaction with "{ 0 }".
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Oct 2018 16:54:24 -0400
changeset 12284fe9bafcd47ba
parent 12277 8b916fc4f50f
child 12285 30c3ffcbed38
evdev: Don't initialize struct sigaction with "{ 0 }".

It causes warnings on some platforms, depending on the actual definition of
sigaction, and since this is static data, it'll be zero'd out anyhow.
src/core/linux/SDL_evdev_kbd.c
     1.1 --- a/src/core/linux/SDL_evdev_kbd.c	Tue Oct 02 20:51:33 2018 -0700
     1.2 +++ b/src/core/linux/SDL_evdev_kbd.c	Wed Oct 03 16:54:24 2018 -0400
     1.3 @@ -198,7 +198,7 @@
     1.4  static int kbd_cleanup_sigactions_installed = 0;
     1.5  static int kbd_cleanup_atexit_installed = 0;
     1.6  
     1.7 -static struct sigaction old_sigaction[NSIG] = { 0 };
     1.8 +static struct sigaction old_sigaction[NSIG];
     1.9  
    1.10  static int fatal_signals[] =
    1.11  {