diff options
author | mgherzan <mgherzan> | 2013-07-02 10:08:01 +0000 |
---|---|---|
committer | mgherzan <mgherzan> | 2013-07-02 10:08:01 +0000 |
commit | 98f3193de4ce9ae09a07ea05fb77e0f5a55a43fe (patch) | |
tree | f9d123ee7d44b759c1aa3e231eae8d6ac30851a8 /gdb/gdbserver | |
parent | 450284df9670b3153539ec87b414f4ef598e7425 (diff) | |
download | gdb-98f3193de4ce9ae09a07ea05fb77e0f5a55a43fe.tar.gz |
gdbserver: avoid empty structs
2013-06-25 Mircea Gherzan <mircea.gherzan@intel.com>
gdbserver/
* notif.h (notif_event): Add a dummy member to avoid compiler
errors.
Change-Id: I490dbdb70a24f52b3947371f7c0397bf7a18423c
Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/notif.h | 2 |
2 files changed, 7 insertions, 0 deletions
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 <mircea.gherzan@intel.com> + + * notif.h (notif_event): Add a dummy member to avoid compiler + errors. + 2013-07-01 Pedro Alves <palves@redhat.com> * 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); |