From 4a79f02842c17cca65622ac31ad00ec513d12880 Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 21 Mar 2021 13:53:29 -0700 Subject: [PATCH] Add braces around sub-object in unfocused_func_list Clang warns on this. This doesn't fix anything but it does ensure that whoever's reading it won't be focused as to whether or not omitting the second set of braces is legal or not. --- desktop_version/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index faef0503..57418b5d 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -242,8 +242,10 @@ static enum IndexCode increment_gamestate_func_index(void) static void unfocused_run(void); static const struct ImplFunc unfocused_func_list[] = { - Func_input, /* we still need polling when unfocused */ - unfocused_run + { + Func_input, /* we still need polling when unfocused */ + unfocused_run + } }; static const struct ImplFunc* unfocused_funcs = unfocused_func_list; static int num_unfocused_funcs = SDL_arraysize(unfocused_func_list);