From 29ace10f7e66e341713a079aab4cdac4efe45f52 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 7 Jun 2017 11:37:28 +0200 Subject: [PATCH] gcc5 has issues with Wconversion This leads to a crash in 2.8, but commiting here. Patch by Campbell Barton. --- source/blender/blenlib/BLI_strict_flags.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/blenlib/BLI_strict_flags.h b/source/blender/blenlib/BLI_strict_flags.h index 964ee06469d..86b7285655e 100644 --- a/source/blender/blenlib/BLI_strict_flags.h +++ b/source/blender/blenlib/BLI_strict_flags.h @@ -30,6 +30,8 @@ #ifdef __GNUC__ # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */ # pragma GCC diagnostic error "-Wsign-compare" +# endif +# if __GNUC__ >= 6 /* gcc6+ only */ # pragma GCC diagnostic error "-Wconversion" # endif # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408