From 78bd029bbe5631fa42739c2c5ec2de0fe80932c5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 16 Feb 2014 14:50:15 +1100 Subject: MSVC: add errors for BLI_strict_flags.h --- source/blender/blenlib/BLI_strict_flags.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/blenlib/BLI_strict_flags.h') 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__ */ -- cgit v1.2.3