On Wed, Mar 25, 2015 at 12:51 PM, Jim Huang <[email protected]> wrote: > main.c:72:45: warning: adding 'int' to a string does not append to the > string [-Wstring-plus-int]
I just noticed the -Wstring-plus-int above. does this fix it? diff -r dbee4e656aa6 configure --- a/configure Thu Mar 26 13:25:20 2015 -0500 +++ b/configure Thu Mar 26 14:27:43 2015 -0500 @@ -7,7 +7,7 @@ # CFLAGS and OPTIMIZE are different so you can add extra CFLAGS without # disabling default optimizations -[ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" +[ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts -Wno-string-plus-int" # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned. CFLAGS="$CFLAGS -funsigned-char" [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables" (Sorry if gmail mangles the above, I'm on the road and have to use the web interface. Hopefully the intent is clear: add -Wno-string-plus-int to CFLAGS. It doesn't seem to bother gcc...) Rob _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
