From 46d2e48105e0929ec38dd4106004dd60d941df9a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 12 Jul 2017 18:32:50 +0200 Subject: [PATCH] tests: Fix printf compiler warning for an error case. * tests/gpg/t-keylist.c (main): Cast DIM to int. Signed-off-by: Werner Koch --- tests/gpg/t-keylist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gpg/t-keylist.c b/tests/gpg/t-keylist.c index 8a32f9b5..04170118 100644 --- a/tests/gpg/t-keylist.c +++ b/tests/gpg/t-keylist.c @@ -569,7 +569,7 @@ main (int argc, char **argv) if (keys[i].fpr) { fprintf (stderr, "Less keys (%d) returned than expected (%d)\n", - i, DIM (keys) - 1); + i, (int)(DIM (keys) - 1)); exit (1); }