From: Keith Packard Date: Wed, 11 Jul 2012 20:47:25 +0000 (-0700) Subject: altos: remove optimization for 'help' that confuses cc1111 compiler X-Git-Tag: 1.1~105 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=726f47c8a07f060aed930e1d102a1e8b5a5c7aed altos: remove optimization for 'help' that confuses cc1111 compiler The cc1111 compiler gets this very wrong and prints piles of garbage Signed-off-by: Keith Packard --- diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c index 05dbfb51..1814cecf 100644 --- a/src/core/ao_cmd.c +++ b/src/core/ao_cmd.c @@ -278,8 +278,10 @@ help(void) for (cmds = 0; cmds < ao_ncmds; cmds++) { cs = ao_cmds[cmds]; - for (cmd = 0; (h = cs[cmd].help); cmd++) + for (cmd = 0; cs[cmd].func; cmd++) { + h = cs[cmd].help; printf("%-45s %s\n", h, h + 1 + strlen(h)); + } } }