[Toybox] i18n configuration in toy_singleinit
Rob Landley
rob at landley.net
Thu Mar 26 12:30:30 PDT 2015
On Wed, Mar 25, 2015 at 12:51 PM, Jim Huang <jserv at 0xlab.org> 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
1427398230.0
More information about the Toybox
mailing list