Discussion:
[PATCH] Fix -Wformat compiler warning in expr.c.
(too old to reply)
enh
2017-07-07 20:10:16 UTC
Permalink
Raw Message
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(-)

Loading...