From fe953ad710fa6e568d6baddf7921c04d785816e6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 17 May 2010 09:09:28 +0200 Subject: [PATCH] build: avoid a new -Wformat-induced warning * src/sort.c (mark_key): Add a cast-to-int of a printf field width, to placate -Wformat. --- src/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sort.c b/src/sort.c index e099640..8a9309a 100644 --- 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")); -- 2.7.4