[uClibc] [PATCH]:Buildroot compilation error with GCC4.0
Khem Raj
kraj at mvista.com
Thu Jul 21 19:42:37 UTC 2005
Hi
While doing make menuconfig I stumbled over this error.
mconf.c:104: error: static declaration of 'current_menu' follows
non-static declaration
lkc.h:63: error: previous declaration of 'current_menu' was here
Looking at the source it seems that the current_menu is declared static
and exported at same time.
as a simple fix I removed the static declaration and made is global.
Make menuconfig succeeded after that
Is this ok?
Thanks
Khem
Index: package/config/mconf.c
===================================================================
--- package/config/mconf.c (revision 10888)
+++ package/config/mconf.c (working copy)
@@ -101,7 +101,7 @@
static int indent = 0;
static struct termios ios_org;
static int rows, cols;
-static struct menu *current_menu;
+struct menu *current_menu;
static int child_count;
static int single_menu_mode;
More information about the uClibc
mailing list