projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9464ce2
)
build: avoid a new -Wformat-induced warning
author
Jim Meyering
<meyering@redhat.com>
Mon, 17 May 2010 07:09:28 +0000
(09:09 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Mon, 17 May 2010 07:09:28 +0000
(09:09 +0200)
* src/sort.c (mark_key): Add a cast-to-int of a printf field width,
to placate -Wformat.
src/sort.c
patch
|
blob
|
history
diff --git
a/src/sort.c
b/src/sort.c
index
e099640
..
8a9309a
100644
(file)
--- a/
src/sort.c
+++ b/
src/sort.c
@@
-2122,7
+2122,7
@@
count_tabs (char const *text, const size_t len)
static void
mark_key (size_t offset, size_t width)
{
- printf ("%*s", offset, "");
+ printf ("%*s",
(int)
offset, "");
if (!width)
printf (_("^ no match for key\n"));