[Pkg-gnupg-commit] [gpgme] 51/103: tests: Fix printf compiler warning for an error case.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Dec 14 18:53:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 46d2e48105e0929ec38dd4106004dd60d941df9a
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Jul 12 18:32:50 2017 +0200

    tests: Fix printf compiler warning for an error case.
    
    * tests/gpg/t-keylist.c (main): Cast DIM to int.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 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 8a32f9b..0417011 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);
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list