From 684ddce18c9c0228d581e60cf2d7fe1fb447b3d3 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Fri, 1 Jul 2011 09:25:54 +0000
Subject: [PATCH] - Minor fixer to remove compiler warnings for ARMCC
---
include/polarssl/version.h | 2 +-
library/rsa.c | 1 -
library/x509parse.c | 1 -
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/polarssl/version.h b/include/polarssl/version.h
index 246d16378e..319f85a0fc 100644
--- a/include/polarssl/version.h
+++ b/include/polarssl/version.h
@@ -58,7 +58,7 @@
* \return The constructed version number in the format
* MMNNPP00 (Major, Minor, Patch).
*/
-unsigned int version_get_number();
+unsigned int version_get_number( void );
/**
* Get the version string ("x.y.z").
diff --git a/library/rsa.c b/library/rsa.c
index 1a6a1621bb..bc3c8bf6d1 100644
--- a/library/rsa.c
+++ b/library/rsa.c
@@ -1000,7 +1000,6 @@ int rsa_pkcs1_verify( rsa_context *ctx,
return( 0 );
else
return( POLARSSL_ERR_RSA_VERIFY_FAILED );
- break;
#endif
default:
diff --git a/library/x509parse.c b/library/x509parse.c
index 74c4fd5e65..c5da0fc34f 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -91,7 +91,6 @@ static int asn1_get_len( unsigned char **p,
default:
return( POLARSSL_ERR_ASN1_INVALID_LENGTH );
- break;
}
}