[Toybox] [PATCH] Fix -Wformat compiler warning in expr.c.

enh enh at google.com
Fri Jul 7 13:10:16 PDT 2017


Android forces -Wformat on for all source.

  toys/pending/expr.c:116:28: warning: field precision should have type 'int',
                                       but argument has type 'long' [-Wformat]
      ret->s = xmprintf("%.*s", m[1].rm_eo-m[1].rm_so, target+m[1].rm_so);
                         ~~^~   ~~~~~~~~~~~~~~~~~~~~~
---
 toys/pending/expr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-Wformat-compiler-warning-in-expr.c.patch
Type: text/x-patch
Size: 1309 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170707/8df579ae/attachment-0002.bin>


More information about the Toybox mailing list