aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/notif.h
diff options
context:
space:
mode:
authorMircea Gherzan <mgherzan@sourceware.org>2013-07-02 10:08:01 +0000
committerMircea Gherzan <mgherzan@sourceware.org>2013-07-02 10:08:01 +0000
commit49b64de6e430e38adcc791398f81a9da0aa95a03 (patch)
tree8831ff6d57685d6d5abdb7805f14360da737fe63 /gdb/gdbserver/notif.h
parentb1a49096efd23b4dbc04996bf6cf1ce3c3bb6830 (diff)
downloadfsf-binutils-gdb-49b64de6e430e38adcc791398f81a9da0aa95a03.zip
fsf-binutils-gdb-49b64de6e430e38adcc791398f81a9da0aa95a03.tar.gz
fsf-binutils-gdb-49b64de6e430e38adcc791398f81a9da0aa95a03.tar.bz2
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/notif.h')
-rw-r--r--gdb/gdbserver/notif.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbserver/notif.h b/gdb/gdbserver/notif.h
index 608b763..c714e7b 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);