Commit 93fb710a46dc7144d003f9a8e01e6c81b93c0c4b

Ryan C. Gordon 2018-10-03T16:54:24

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/core/linux/SDL_evdev_kbd.c b/src/core/linux/SDL_evdev_kbd.c
index 4359136..00a3a54 100644
--- a/src/core/linux/SDL_evdev_kbd.c
+++ b/src/core/linux/SDL_evdev_kbd.c
@@ -198,7 +198,7 @@ static SDL_EVDEV_keyboard_state * kbd_cleanup_state = NULL;
 static int kbd_cleanup_sigactions_installed = 0;
 static int kbd_cleanup_atexit_installed = 0;
 
-static struct sigaction old_sigaction[NSIG] = { 0 };
+static struct sigaction old_sigaction[NSIG];
 
 static int fatal_signals[] =
 {