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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rwxr-xr-x[-rw-r--r--]source/blender/blenkernel/intern/mask_rasterize.c2
-rw-r--r--source/blender/blenlib/BLI_strict_flags.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mask_rasterize.c b/source/blender/blenkernel/intern/mask_rasterize.c
index 2c60f52578d..ba1b873c613 100644..100755
--- a/source/blender/blenkernel/intern/mask_rasterize.c
+++ b/source/blender/blenkernel/intern/mask_rasterize.c
@@ -1440,7 +1440,7 @@ void BKE_maskrasterize_buffer(MaskRasterHandle *mr_handle,
#endif
#pragma omp parallel for private(y)
- for (y = 0; y < height; y++) {
+ for (y = 0; (unsigned int)y < height; y++) {
unsigned int i = y * width;
unsigned int x;
float xy[2];
diff --git a/source/blender/blenlib/BLI_strict_flags.h b/source/blender/blenlib/BLI_strict_flags.h
index 5c5a6f45f0c..cb92f7837ec 100644
--- a/source/blender/blenlib/BLI_strict_flags.h
+++ b/source/blender/blenlib/BLI_strict_flags.h
@@ -38,4 +38,13 @@
# endif
#endif
+#ifdef _MSC_VER
+# pragma warning(error:4018) /* signed/unsigned mismatch */
+# pragma warning(error:4244) /* conversion from 'type1' to 'type2', possible loss of data */
+# pragma warning(error:4245) /* conversion from 'int' to 'unsigned int' */
+# pragma warning(error:4267) /* conversion from 'size_t' to 'type', possible loss of data */
+# pragma warning(error:4305) /* truncation from 'type1' to 'type2' */
+# pragma warning(error:4389) /* signed/unsigned mismatch */
+#endif
+
#endif /* __BLI_STRICT_FLAGS_H__ */