From 3e559e8d89a075827f52d61e4529e066db92df25 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 26 Jan 2007 19:59:31 +0000 Subject: [PATCH] remove a bogus gcc warning --- rangecheck.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rangecheck.h b/rangecheck.h index 6db8479..365ef14 100644 --- a/rangecheck.h +++ b/rangecheck.h @@ -79,7 +79,7 @@ int range_str4inbuf(const void* buf,size_t len,const void* stringstart); #define __MIN(type) ((type)-1 < 1?__MIN_SIGNED(type):__MIN_UNSIGNED(type)) #define __MAX(type) ((type)~__MIN(type)) -#define assign(dest,src) ({ typeof(src) __x=(src); typeof(dest) __y=__x; (__x==__y && ((__x<1) == (__y<1))?(int)((dest)=__y),0:1); }) +#define assign(dest,src) ({ typeof(src) __x=(src); typeof(dest) __y=__x; (__x==__y && ((__x<1) == (__y<1))?(void)((dest)=__y),0:1); }) /* if a+b is defined and does not have an integer overflow, do c=a+b and * return 0. Otherwise, return 1. */