From: Mircea Gherzan Date: Tue, 2 Jul 2013 10:08:01 +0000 (+0000) Subject: gdbserver: avoid empty structs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49b64de6e430e38adcc791398f81a9da0aa95a03;p=binutils-gdb.git gdbserver: avoid empty structs 2013-06-25 Mircea Gherzan gdbserver/ * notif.h (notif_event): Add a dummy member to avoid compiler errors. Change-Id: I490dbdb70a24f52b3947371f7c0397bf7a18423c Signed-off-by: Mircea Gherzan --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 91a3f9ba75c..e416a26da94 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2013-07-02 Mircea Gherzan + + * notif.h (notif_event): Add a dummy member to avoid compiler + errors. + 2013-07-01 Pedro Alves * hostio.c (HOSTIO_PATH_MAX): Define. diff --git a/gdb/gdbserver/notif.h b/gdb/gdbserver/notif.h index 608b763e5b4..c714e7bc784 100644 --- a/gdb/gdbserver/notif.h +++ b/gdb/gdbserver/notif.h @@ -27,6 +27,8 @@ typedef struct notif_event { + /* C requires that a struct or union has at least one member. */ + char dummy; } *notif_event_p; DECLARE_QUEUE_P (notif_event_p);