diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-23 00:20:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-23 00:20:06 +0400 |
commit | 1fb980e7df3587982e9117c409f4c1e5af50c90a (patch) | |
tree | 8ab7180e68aecc113ee6db633cfee79dce7b3063 /source/blender/blenlib/intern/edgehash.c | |
parent | d23bf097128b4baf032d14c345e9d97656f2da78 (diff) |
reduce sign conversion comparisons for smallhash and tweak warnings elsewhere.
Diffstat (limited to 'source/blender/blenlib/intern/edgehash.c')
-rw-r--r-- | source/blender/blenlib/intern/edgehash.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/edgehash.c b/source/blender/blenlib/intern/edgehash.c index 3c153cc5998..68eab5f60e7 100644 --- a/source/blender/blenlib/intern/edgehash.c +++ b/source/blender/blenlib/intern/edgehash.c @@ -42,8 +42,11 @@ #include "BLI_mempool.h" #ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wstrict-overflow" # pragma GCC diagnostic error "-Wsign-conversion" +# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */ +# pragma GCC diagnostic error "-Wsign-compare" +# pragma GCC diagnostic error "-Wconversion" +# endif #endif /**************inlined code************/ @@ -265,4 +268,3 @@ bool BLI_edgehashIterator_isDone(EdgeHashIterator *ehi) { return (ehi->curEntry == NULL); } - |