diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-07-20 17:17:14 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-07-20 17:17:14 +0100 |
commit | a12f111e567c7f1269c3161f88aa7a0f019ef7fe (patch) | |
tree | 5bfdc0e396878c3992d49e258bc3b369f1118b86 /hax-stub.c | |
parent | 8568110702f1c4911b25e57914ac2e886357f802 (diff) |
util/oslib-posix.c: Avoid warning on NetBSDbsd-warnings
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>
Diffstat (limited to 'hax-stub.c')
0 files changed, 0 insertions, 0 deletions