From 35f33fc82c270c2ce5135e49550631fb988ca225 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 21 Jul 2022 09:59:57 +0200 Subject: added suppression of warning C4189 to work around problems in fmt --- zencore/include/zencore/zencore.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h index 1e5689d87..aeab46a75 100644 --- a/zencore/include/zencore/zencore.h +++ b/zencore/include/zencore/zencore.h @@ -73,10 +73,11 @@ #ifndef ZEN_THIRD_PARTY_INCLUDES_START # if ZEN_COMPILER_MSC # define ZEN_THIRD_PARTY_INCLUDES_START \ - __pragma(warning(push)) __pragma(warning(disable : 4668)) /* use of undefined preprocessor macro */ \ - __pragma(warning(disable : 4305)) /* 'if': truncation from 'uint32' to 'bool' */ \ - __pragma(warning(disable : 4267)) /* '=': conversion from 'size_t' to 'US' */ \ - __pragma(warning(disable : 4127)) /* conditional expression is constant */ + __pragma(warning(push)) __pragma(warning(disable : 4668)) /* C4668: use of undefined preprocessor macro */ \ + __pragma(warning(disable : 4305)) /* C4305: 'if': truncation from 'uint32' to 'bool' */ \ + __pragma(warning(disable : 4267)) /* C4267: '=': conversion from 'size_t' to 'US' */ \ + __pragma(warning(disable : 4127)) /* C4127: conditional expression is constant */ \ + __pragma(warning(disable : 4189)) /* C4189: local variable is initialized but not referenced */ # elif ZEN_COMPILER_CLANG # define ZEN_THIRD_PARTY_INCLUDES_START \ _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wundef\"") \ -- cgit v1.2.3