summaryrefslogtreecommitdiffstats
path: root/crypto/cryptlib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-09-06 12:43:54 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-09-06 12:43:54 +0000
commit927a28ba3b58210dd83f5ace7f29fbf7b2caf05b (patch)
treea26ab105590e63dd01bb254117c8cbf9c5dd22fa /crypto/cryptlib.c
parenta938c4284e74b62a704a5721dff6a7efe632a3ac (diff)
gcc 4.2 fixes to avoid use or function pointer casts in OpenSSL.
Fix various "computed value not used" warnings too.
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r--crypto/cryptlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index 86af760d38..8c68623828 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -277,7 +277,7 @@ int CRYPTO_get_new_dynlockid(void)
else
/* If we found a place with a NULL pointer, put our pointer
in it. */
- sk_CRYPTO_dynlock_set(dyn_locks,i,pointer);
+ (void)sk_CRYPTO_dynlock_set(dyn_locks,i,pointer);
CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
if (i == -1)
@@ -319,7 +319,7 @@ void CRYPTO_destroy_dynlockid(int i)
#endif
if (pointer->references <= 0)
{
- sk_CRYPTO_dynlock_set(dyn_locks, i, NULL);
+ (void)sk_CRYPTO_dynlock_set(dyn_locks, i, NULL);
}
else
pointer = NULL;