[anjuta/gnome-2-30] symbol-db: bgo #614933 - build fail with sun cc because zero-sized struct



commit 22e9cf1a0f757b351e98cd3ec9fac817b3d62725
Author: Halton Huo <halton huo sun com>
Date:   Wed Apr 7 19:14:27 2010 +0200

    symbol-db: bgo #614933 - build fail with sun cc because zero-sized struct

 plugins/symbol-db/anjuta-tags/js_parser/js-node.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/symbol-db/anjuta-tags/js_parser/js-node.h b/plugins/symbol-db/anjuta-tags/js_parser/js-node.h
index 208475f..1ad3e5d 100644
--- a/plugins/symbol-db/anjuta-tags/js_parser/js-node.h
+++ b/plugins/symbol-db/anjuta-tags/js_parser/js-node.h
@@ -59,6 +59,7 @@ struct _JSNode
 			JSNode *head;
 		} list;
 		struct {                        /* ternary: if, for(;;), ?: */
+			char dummy;
 		} ternary;
 		struct {                        /* two kids if binary */
 			JSNode *left;
@@ -73,6 +74,7 @@ struct _JSNode
 			char isconst;
 		} name;
 		struct {
+			char dummy;
 		} apair;
     } pn_u;
     JSNode *pn_next;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]