gallium: hud_context: Fix scalar initializer warning.
authorJohn Stultz <john.stultz@linaro.org>
Tue, 10 Mar 2020 03:27:35 +0000 (03:27 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 02:52:58 +0000 (02:52 +0000)
commitbe22995ecf868a90c6b14fce9b907cf302459e71
treeeb518c9377dfbd38a5c47a0e5a16f7ade93bd383
parent09fbde830f30c8a316710ef827c323be8e43bc7c
gallium: hud_context: Fix scalar initializer warning.

When trying to build mesa/master under AOSP, I've run into the
following error:

external/mesa3d/src/gallium/auxiliary/hud/hud_context.c:1821:31: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init]
   struct sigaction action = {{0}};
                              ^~~
1 error generated.

This patch addresses this by switching to using memset instead of
using an initializer.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4141>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4141>
src/gallium/auxiliary/hud/hud_context.c