[PATCH v2 2/4] gdbserver: avoid empty structs

Mircea Gherzan mircea.gherzan@intel.com
Mon Jul 1 17:25:00 GMT 2013


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



More information about the Gdb-patches mailing list