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>2014-02-16 07:50:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-16 07:50:15 +0400
commit78bd029bbe5631fa42739c2c5ec2de0fe80932c5 (patch)
tree973e76d21aa4a7755012b9902c52f15a9377d5ef /source/blender/blenlib/BLI_strict_flags.h
parent7c69215933f70473313b4eef87dd261df5346003 (diff)
MSVC: add errors for BLI_strict_flags.h
Diffstat (limited to 'source/blender/blenlib/BLI_strict_flags.h')
-rw-r--r--source/blender/blenlib/BLI_strict_flags.h9
1 files changed, 9 insertions, 0 deletions
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__ */