projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70613fa
)
need a pragma to supress MSC constant overflow warning
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 19 Jul 2005 14:35:41 +0000
(14:35 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 19 Jul 2005 14:35:41 +0000
(14:35 +0000)
[r6245]
ir/adt/hashptr.h
patch
|
blob
|
history
diff --git
a/ir/adt/hashptr.h
b/ir/adt/hashptr.h
index
5755b3e
..
dfe2b37
100644
(file)
--- 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.