[xmlsec] make compiler happy



commit bddbea1e7b4a434154fd5d6cbf2ffeec7edc7b97
Author: Aleksey Sanin <aleksey aleksey com>
Date:   Mon May 10 21:53:43 2010 -0700

    make compiler happy

 src/gcrypt/app.c        |    9 ++++++---
 src/gcrypt/signatures.c |    5 ++---
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/gcrypt/app.c b/src/gcrypt/app.c
index bf33f33..505b602 100644
--- a/src/gcrypt/app.c
+++ b/src/gcrypt/app.c
@@ -133,8 +133,11 @@ xmlSecGCryptAppKeyLoad(const char *filename, xmlSecKeyDataFormat format,
  */
 xmlSecKeyPtr
 xmlSecGCryptAppKeyLoadMemory(const xmlSecByte* data, xmlSecSize dataSize,
-                        xmlSecKeyDataFormat format, const char *pwd,
-                        void* pwdCallback, void* pwdCallbackCtx) {
+                        xmlSecKeyDataFormat format,
+                        const char *pwd ATTRIBUTE_UNUSED,
+                        void* pwdCallback ATTRIBUTE_UNUSED,
+                        void* pwdCallbackCtx ATTRIBUTE_UNUSED)
+{
     xmlSecKeyPtr key = NULL;
     xmlSecKeyDataPtr key_data = NULL;
     int ret;
@@ -181,7 +184,7 @@ xmlSecGCryptAppKeyLoadMemory(const xmlSecByte* data, xmlSecSize dataSize,
     }
 
     /* we should have key data by now */
-    xmlSecAssert2(key_data != NULL, -1);
+    xmlSecAssert2(key_data != NULL, NULL);
     key = xmlSecKeyCreate();
     if(key == NULL) {
         xmlSecError(XMLSEC_ERRORS_HERE,
diff --git a/src/gcrypt/signatures.c b/src/gcrypt/signatures.c
index 3f6ead2..cc8cf14 100644
--- a/src/gcrypt/signatures.c
+++ b/src/gcrypt/signatures.c
@@ -526,7 +526,6 @@ xmlSecGCryptAppendMpi(gcry_mpi_t a, xmlSecBufferPtr out) {
     size_t written;
     gpg_error_t err;
     int ret;
-    int res = -1;
 
     xmlSecAssert2(a != NULL, -1);
     xmlSecAssert2(out != NULL, -1);
@@ -618,7 +617,7 @@ xmlSecGCryptAppendMpi(gcry_mpi_t a, xmlSecBufferPtr out) {
  *
  ***************************************************************************/
 static int
-xmlSecGCryptDsaPkSign(int digest, xmlSecKeyDataPtr key_data,
+xmlSecGCryptDsaPkSign(int digest ATTRIBUTE_UNUSED, xmlSecKeyDataPtr key_data,
                       const xmlSecByte* dgst, xmlSecSize dgstSize,
                       xmlSecBufferPtr out) {
     gcry_mpi_t m_hash = NULL;
@@ -793,7 +792,7 @@ done:
 }
 
 static int
-xmlSecGCryptDsaPkVerify(int digest, xmlSecKeyDataPtr key_data,
+xmlSecGCryptDsaPkVerify(int digest ATTRIBUTE_UNUSED, xmlSecKeyDataPtr key_data,
                         const xmlSecByte* dgst, xmlSecSize dgstSize,
                         const xmlSecByte* data, xmlSecSize dataSize) {
     gcry_mpi_t m_hash = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]