From d764e7edb86dd2d9abc5db528408adb6cd789bed Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 18 Oct 2008 12:12:34 +0000 Subject: [PATCH] Fix warning a different way. --- crypto/objects/objects.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.25.1