projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92e2c81
)
Avoid warnings.
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 28 Feb 2008 14:05:01 +0000
(14:05 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 28 Feb 2008 14:05:01 +0000
(14:05 +0000)
crypto/asn1/tasn_enc.c
patch
|
blob
|
history
crypto/bn/bn_div.c
patch
|
blob
|
history
crypto/cryptlib.c
patch
|
blob
|
history
crypto/ex_data.c
patch
|
blob
|
history
crypto/x509/x509_vfy.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/tasn_enc.c
b/crypto/asn1/tasn_enc.c
index 03e59d59c786b87b060e24192b4baab6a83f2c2d..b0417ba4b418589a495174e4098a13b858f48a59 100644
(file)
--- a/
crypto/asn1/tasn_enc.c
+++ b/
crypto/asn1/tasn_enc.c
@@
-494,7
+494,7
@@
static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out,
{
for (i = 0, tder = derlst; i < sk_ASN1_VALUE_num(sk);
i++, tder++)
{
for (i = 0, tder = derlst; i < sk_ASN1_VALUE_num(sk);
i++, tder++)
- sk_ASN1_VALUE_set(sk, i, tder->field);
+
(void)
sk_ASN1_VALUE_set(sk, i, tder->field);
}
OPENSSL_free(derlst);
OPENSSL_free(tmpdat);
}
OPENSSL_free(derlst);
OPENSSL_free(tmpdat);
diff --git
a/crypto/bn/bn_div.c
b/crypto/bn/bn_div.c
index 8655eb118e6b4775f2097f02c4f2b79b23b2a7f3..8adf21430e8a15d70734898cc7d38dc6e8ed0b10 100644
(file)
--- a/
crypto/bn/bn_div.c
+++ b/
crypto/bn/bn_div.c
@@
-325,7
+325,7
@@
X) -> 0x%08X\n",
t2 -= d1;
}
#else /* !BN_LLONG */
t2 -= d1;
}
#else /* !BN_LLONG */
- BN_ULONG t2l,t2h
,ql,qh
;
+ BN_ULONG t2l,t2h;
q=bn_div_words(n0,n1,d0);
#ifdef BN_DEBUG_LEVITTE
q=bn_div_words(n0,n1,d0);
#ifdef BN_DEBUG_LEVITTE
@@
-343,9
+343,12
@@
X) -> 0x%08X\n",
t2l = d1 * q;
t2h = BN_UMULT_HIGH(d1,q);
#else
t2l = d1 * q;
t2h = BN_UMULT_HIGH(d1,q);
#else
+ {
+ BN_ULONG ql, qh;
t2l=LBITS(d1); t2h=HBITS(d1);
ql =LBITS(q); qh =HBITS(q);
mul64(t2l,t2h,ql,qh); /* t2=(BN_ULLONG)d1*q; */
t2l=LBITS(d1); t2h=HBITS(d1);
ql =LBITS(q); qh =HBITS(q);
mul64(t2l,t2h,ql,qh); /* t2=(BN_ULLONG)d1*q; */
+ }
#endif
for (;;)
#endif
for (;;)
@@
-549,7
+552,7
@@
X) -> 0x%08X\n",
t2 -= d1;
}
#else /* !BN_LLONG */
t2 -= d1;
}
#else /* !BN_LLONG */
- BN_ULONG t2l,t2h
,ql,qh
;
+ BN_ULONG t2l,t2h;
q=bn_div_words(n0,n1,d0);
#ifdef BN_DEBUG_LEVITTE
q=bn_div_words(n0,n1,d0);
#ifdef BN_DEBUG_LEVITTE
@@
-567,9
+570,12
@@
X) -> 0x%08X\n",
t2l = d1 * q;
t2h = BN_UMULT_HIGH(d1,q);
#else
t2l = d1 * q;
t2h = BN_UMULT_HIGH(d1,q);
#else
+ {
+ BN_ULONG ql, qh;
t2l=LBITS(d1); t2h=HBITS(d1);
ql =LBITS(q); qh =HBITS(q);
mul64(t2l,t2h,ql,qh); /* t2=(BN_ULLONG)d1*q; */
t2l=LBITS(d1); t2h=HBITS(d1);
ql =LBITS(q); qh =HBITS(q);
mul64(t2l,t2h,ql,qh); /* t2=(BN_ULLONG)d1*q; */
+ }
#endif
for (;;)
#endif
for (;;)
diff --git
a/crypto/cryptlib.c
b/crypto/cryptlib.c
index 2df38fa75f14b0d643a4e42b793a6de2d1a85a2e..33c70afa33333aa9af1b6488ecd54737fc906aa5 100644
(file)
--- a/
crypto/cryptlib.c
+++ b/
crypto/cryptlib.c
@@
-278,7
+278,7
@@
int CRYPTO_get_new_dynlockid(void)
else
/* If we found a place with a NULL pointer, put our pointer
in it. */
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)
CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
if (i == -1)
@@
-320,7
+320,7
@@
void CRYPTO_destroy_dynlockid(int i)
#endif
if (pointer->references <= 0)
{
#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;
}
else
pointer = NULL;
diff --git
a/crypto/ex_data.c
b/crypto/ex_data.c
index 8914218fe8f9c00430d9ab66af4be84e11c376d0..3b11e7a55613ce80be92183f298bb1907fed295e 100644
(file)
--- a/
crypto/ex_data.c
+++ b/
crypto/ex_data.c
@@
-354,7
+354,7
@@
static int def_add_index(EX_CLASS_ITEM *item, long argl, void *argp,
}
}
toret = item->meth_num++;
}
}
toret = item->meth_num++;
- sk_CRYPTO_EX_DATA_FUNCS_set(item->meth, toret, a);
+
(void)
sk_CRYPTO_EX_DATA_FUNCS_set(item->meth, toret, a);
err:
CRYPTO_w_unlock(CRYPTO_LOCK_EX_DATA);
return toret;
err:
CRYPTO_w_unlock(CRYPTO_LOCK_EX_DATA);
return toret;
diff --git
a/crypto/x509/x509_vfy.c
b/crypto/x509/x509_vfy.c
index 609606c13eb1f7e16652b473c4bcc84d8164641f..625af4fd9f8a79c75c80b0d5e836e7374943755e 100644
(file)
--- a/
crypto/x509/x509_vfy.c
+++ b/
crypto/x509/x509_vfy.c
@@
-216,7
+216,7
@@
int X509_verify_cert(X509_STORE_CTX *ctx)
*/
X509_free(x);
x = xtmp;
*/
X509_free(x);
x = xtmp;
- sk_X509_set(ctx->chain, i - 1, x);
+
(void)
sk_X509_set(ctx->chain, i - 1, x);
ctx->last_untrusted=0;
}
}
ctx->last_untrusted=0;
}
}