Mute some warnings

This commit is contained in:
Magnus Norddahl 2022-06-15 05:45:12 +02:00 committed by Christoph Oelckers
parent 7fc579c8b2
commit 386cb5bfb2
2 changed files with 5 additions and 0 deletions

View file

@ -99,6 +99,7 @@ std::string to_string(const T& val) {
#endif
#if defined(_MSC_VER)
#undef strdup
#define strdup _strdup
#endif

View file

@ -42,6 +42,10 @@
#include <cstdlib>
#include <climits>
#ifdef _MSC_VER
#pragma warning(disable: 4146) // warning C4146: unary minus operator applied to unsigned type, result still unsigned
#endif
namespace {
using namespace glslang;