gcc5 has issues with Wconversion

This leads to a crash in 2.8, but commiting here.
Patch by Campbell Barton.
This commit is contained in:
Dalai Felinto 2017-06-07 11:37:28 +02:00
parent 58a434b372
commit 29ace10f7e
1 changed files with 2 additions and 0 deletions

View File

@ -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