summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorwuyangyong <[email protected]>2011-01-12 06:21:10 +0000
committerwuyangyong <[email protected]>2011-01-12 06:21:10 +0000
commit50bd74d3cbe0bfcd3d3a936fcf7ee42049a5829c (patch)
treeb10bf2bf01740777e6328c51334af1ef36cf1dd7 /examples
parentafbce6d5f9b7a8afee135e5fd4cbe4f8fec860ee (diff)
fix compiler error.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1238 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples')
-rw-r--r--examples/gui/demo_view_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gui/demo_view_menu.c b/examples/gui/demo_view_menu.c
index c0dabbb8df..168a797142 100644
--- a/examples/gui/demo_view_menu.c
+++ b/examples/gui/demo_view_menu.c
@@ -25,7 +25,7 @@ static const rtgui_menu_item_t items[] =
{RTGUI_ITEM_NORMAL, "item #1", RT_NULL, RT_NULL, 0, RT_NULL},
{RTGUI_ITEM_NORMAL, "item #2", RT_NULL, RT_NULL, 0, RT_NULL},
{RTGUI_ITEM_SEPARATOR, RT_NULL, RT_NULL, RT_NULL, 0, RT_NULL},
- {RTGUI_ITEM_SUBMENU, "item #3", RT_NULL, sub_items, sizeof(sub_items)/sizeof(sub_items[0]), RT_NULL},
+ {RTGUI_ITEM_SUBMENU, "item #3", RT_NULL, (struct rtgui_menu_item_t *)sub_items, sizeof(sub_items)/sizeof(sub_items[0]), RT_NULL},
};
static rtgui_menu_t* menu;