diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-07-20 17:32:21 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-07-21 10:32:19 +0100 |
commit | 02ffa034fb747f09a4f5658ed64871dcee4aaca2 (patch) | |
tree | d094903e18f170e33dbc6eeebc0d09525c4a07cd /gdbstub.c | |
parent | 4439e1f1563a36e3bad31e5d2327d500c1aea109 (diff) |
util/oslib-posix.c: Avoid warning on NetBSD
On NetBSD the compiler warns:
util/oslib-posix.c: In function 'sigaction_invoke':
util/oslib-posix.c:589:5: warning: missing braces around initializer [-Wmissing-braces]
siginfo_t si = { 0 };
^
util/oslib-posix.c:589:5: warning: (near initialization for 'si.si_pad') [-Wmissing-braces]
because on this platform siginfo_t is defined as
typedef union siginfo {
char si_pad[128]; /* Total size; for future expansion */
struct _ksiginfo _info;
} siginfo_t;
Avoid this warning by initializing the struct with {} instead;
this is a GCC extension but we use it all over the codebase already.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1500568341-8389-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'gdbstub.c')
0 files changed, 0 insertions, 0 deletions