This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 2/4] 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.

Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
---
 gdb/gdbserver/notif.h | 2 ++
 1 file changed, 2 insertions(+)

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);
-- 
1.7.12.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]