From: Ben Laurie Date: Sat, 18 Oct 2008 12:12:34 +0000 (+0000) Subject: Fix warning a different way. X-Git-Tag: OpenSSL_0_9_8k^2~225 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d764e7edb86dd2d9abc5db528408adb6cd789bed;p=oweals%2Fopenssl.git Fix warning a different way. --- diff --git a/crypto/objects/objects.h b/crypto/objects/objects.h index ecbe03c2d9..55f65f29ce 100644 --- a/crypto/objects/objects.h +++ b/crypto/objects/objects.h @@ -1071,15 +1071,15 @@ const void * OBJ_bsearch_ex_(const void *key,const void *base,int num, #define OBJ_bsearch(type1,key,type2,base,num,cmp) \ ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \ num,sizeof(type2), \ - (cmp##_type_1=CHECKED_PTR_OF(type1,cmp##_type_1), \ - cmp##_type_2=CHECKED_PTR_OF(type2,cmp##_type_2), \ + ((void)CHECKED_PTR_OF(type1,cmp##_type_1), \ + (void)CHECKED_PTR_OF(type2,cmp##_type_2), \ cmp##_BSEARCH_CMP_FN))) #define OBJ_bsearch_ex(type1,key,type2,base,num,cmp,flags) \ ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \ num,sizeof(type2), \ - (cmp##_type_1=CHECKED_PTR_OF(type1,cmp##_type_1), \ - cmp##_type_2=CHECKED_PTR_OF(type2,cmp##_type_2), \ + ((void)CHECKED_PTR_OF(type1,cmp##_type_1), \ + (void)type_2=CHECKED_PTR_OF(type2,cmp##_type_2), \ cmp##_BSEARCH_CMP_FN)),flags) int OBJ_new_nid(int num);