From: Michael Beck Date: Tue, 19 Jul 2005 14:35:41 +0000 (+0000) Subject: need a pragma to supress MSC constant overflow warning X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1d71f14e1376a956ab51490943e75055f128b249;p=libfirm need a pragma to supress MSC constant overflow warning [r6245] --- diff --git a/ir/adt/hashptr.h b/ir/adt/hashptr.h index 5755b3e37..dfe2b37a7 100644 --- a/ir/adt/hashptr.h +++ b/ir/adt/hashptr.h @@ -48,6 +48,10 @@ static INLINE unsigned firm_fnv_hash(const unsigned char *data, unsigned bytes) */ #define HASH_STR(str,len) firm_fnv_hash((const unsigned char *) (str), (len)) +#ifdef _MSC_VER +#pragma warning(disable:4307) +#endif _MSC_VER + static INLINE unsigned _hash_combine(unsigned x, unsigned y) { unsigned hash = _FIRM_FNV_TIMES_PRIME(_FIRM_FNV_OFFSET_BASIS); @@ -57,6 +61,10 @@ static INLINE unsigned _hash_combine(unsigned x, unsigned y) return hash; } +#ifdef _MSC_VER +#pragma warning(default:4307) +#endif _MSC_VER + /** * Make one hash value out of two others. * @param a One hash value.