Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-20 23:39:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-20 23:39:29 +0400
commit2efea8cf03f9bcb923d969b9ba4c905503e306dc (patch)
tree0179a6aa6b050d825ec8132cbbe8e982bcc89f95 /source/blender/blenlib/intern/BLI_mempool.c
parent6a269e2a8e327fdc81f158b4e24c8909837f013c (diff)
reduce sign comparisons for ghash and add more strict warnings for gcc.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index 136ecc244fa..ff9a5abfaa1 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -45,6 +45,8 @@
#ifdef __GNUC__
# pragma GCC diagnostic error "-Wsign-conversion"
+# pragma GCC diagnostic error "-Wsign-compare"
+# pragma GCC diagnostic error "-Wconversion"
#endif
/* note: copied from BLO_blend_defs.h, don't use here because we're in BLI */
@@ -102,8 +104,8 @@ BLI_mempool *BLI_mempool_create(int esize, int totelem, int pchunk, int flag)
}
/* set the elem size */
- if (esize < MEMPOOL_ELEM_SIZE_MIN) {
- esize = MEMPOOL_ELEM_SIZE_MIN;
+ if (esize < (int)MEMPOOL_ELEM_SIZE_MIN) {
+ esize = (int)MEMPOOL_ELEM_SIZE_MIN;
}
if (flag & BLI_MEMPOOL_ALLOW_ITER) {