commit d488e5a511ca54ed1ae8c0502b80e79e99215fd3 from: Omar Polo date: Fri Jul 08 21:03:41 2022 UTC add missing initializers meh, just to please the compiler. Global variables are guaranteed to be zeroed so not specifying a value shouldn't matter, yet it complains. commit - b9d2a697d18a2b6994f7b611145e7b085a5de49d commit + d488e5a511ca54ed1ae8c0502b80e79e99215fd3 blob - 22503490f66bae5859f7a5a31ff3722c73acc680 blob + 5cf6b04fc9bc74669b548658678d41ba75003a9d --- ctl.c +++ ctl.c @@ -50,22 +50,22 @@ int ctl_repeat(struct parse_result *, int, char **); int ctl_monitor(struct parse_result *, int, char **); struct ctl_command ctl_commands[] = { - { "play", PLAY, ctl_noarg, "" }, - { "pause", PAUSE, ctl_noarg, "" }, - { "toggle", TOGGLE, ctl_noarg, "" }, - { "stop", STOP, ctl_noarg, "" }, - { "restart", RESTART, ctl_noarg, "" }, - { "add", ADD, ctl_add, "files..." }, - { "flush", FLUSH, ctl_noarg, "" }, - { "show", SHOW, ctl_show, "[-p]" }, - { "status", STATUS, ctl_noarg, "" }, - { "next", NEXT, ctl_noarg, "" }, - { "prev", PREV, ctl_noarg, "" }, + { "play", PLAY, ctl_noarg, "", 0 }, + { "pause", PAUSE, ctl_noarg, "", 0 }, + { "toggle", TOGGLE, ctl_noarg, "", 0 }, + { "stop", STOP, ctl_noarg, "", 0 }, + { "restart", RESTART, ctl_noarg, "", 0 }, + { "add", ADD, ctl_add, "files...", 0 }, + { "flush", FLUSH, ctl_noarg, "", 0 }, + { "show", SHOW, ctl_show, "[-p]", 0 }, + { "status", STATUS, ctl_noarg, "", 0 }, + { "next", NEXT, ctl_noarg, "", 0 }, + { "prev", PREV, ctl_noarg, "", 0 }, { "load", LOAD, ctl_load, "[file]", 1 }, - { "jump", JUMP, ctl_jump, "pattern" }, - { "repeat", REPEAT, ctl_repeat, "one|all on|off" }, - { "monitor", MONITOR, ctl_monitor, "[events]" }, - { NULL }, + { "jump", JUMP, ctl_jump, "pattern", 0 }, + { "repeat", REPEAT, ctl_repeat, "one|all on|off", 0 }, + { "monitor", MONITOR, ctl_monitor, "[events]", 0 }, + { NULL, 0, NULL, NULL, 0 }, }; __dead void