[Toybox] [PATCH] kconfig/mconf: Fix warnings.

Georgi Chorbadzhiyski gf at unixsol.org
Wed Feb 29 14:38:38 PST 2012


This patch fixes the following warnings.

kconfig/mconf.c: In function 'conf_string':
kconfig/mconf.c:777:12: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
kconfig/mconf.c:780:12: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
kconfig/mconf.c:783:12: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
---
 kconfig/mconf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kconfig/mconf.c b/kconfig/mconf.c
index 8421722..114332e 100644
--- a/kconfig/mconf.c
+++ b/kconfig/mconf.c
@@ -770,7 +770,7 @@ static void conf_string(struct menu *menu)
 
 	while (1) {
 		int res;
-		char *heading;
+		const char *heading;
 
 		switch (sym_get_type(menu->sym)) {
 		case S_INT:
-- 
1.7.5.1


 1330555118.0


More information about the Toybox mailing list