[pkg-opensc-commit] [opensc] 103/295: pkcs11-tool.c: fix compiler warning

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:20 UTC 2017


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

eric pushed a commit to branch master
in repository opensc.

commit 8b761b830bf7988202fef7a9f1eb0a270d129b6a
Author: Ludovic Rousseau <ludovic.rousseau+github at gmail.com>
Date:   Fri Oct 14 14:34:41 2016 +0200

    pkcs11-tool.c: fix compiler warning
    
    pkcs11-tool.c:2992:1: warning: control reaches end of non-void function
          [-Wreturn-type]
    }
    ^
---
 src/tools/pkcs11-tool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c
index c05b224..c28f686 100644
--- a/src/tools/pkcs11-tool.c
+++ b/src/tools/pkcs11-tool.c
@@ -2988,6 +2988,7 @@ derive_ec_key(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE key, CK_MECHANISM_TYPE
 	return newkey;
 #else
 	util_fatal("Derive EC key not supported");
+	return 0;
 #endif /* ENABLE_OPENSSL  && !OPENSSL_NO_EC && !OPENSSL_NO_ECDSA */
 }
 

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



More information about the pkg-opensc-commit mailing list