gdbserver: avoid empty structs
authorMircea Gherzan <mgherzan@sourceware.org>
Tue, 2 Jul 2013 10:08:01 +0000 (10:08 +0000)
committerMircea Gherzan <mgherzan@sourceware.org>
Tue, 2 Jul 2013 10:08:01 +0000 (10:08 +0000)
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>
gdb/gdbserver/ChangeLog
gdb/gdbserver/notif.h

index 91a3f9ba75c7a40dc497c50c438ec5c216a35b94..e416a26da9432c16c17338fb1ae7a20efc4f0ead 100644 (file)
@@ -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.
index 608b763e5b446c8e899a72e4fdad897a2b4c7b6c..c714e7bc7843d80c2970eb2f35b8c780689c4017 100644 (file)
@@ -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);
This page took 0.031976 seconds and 4 git commands to generate.