From 73508ac80f9b01e923ffddd24ba687b1a60f68bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 7 Sep 2020 10:06:47 -0700 Subject: [PATCH] Fixed warnings. --- examples/common/font/font_manager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/common/font/font_manager.cpp b/examples/common/font/font_manager.cpp index c9989ef3f..fc3962225 100644 --- a/examples/common/font/font_manager.cpp +++ b/examples/common/font/font_manager.cpp @@ -4,15 +4,16 @@ */ #include - #include - #include "../common.h" - #include +BX_PRAGMA_DIAGNOSTIC_PUSH() +BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4244) // warning C4244: '=': conversion from 'double' to 'float', possible loss of data +BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4701) // warning C4701: potentially uninitialized local variable 'pt' used #define SDF_IMPLEMENTATION #include +BX_PRAGMA_DIAGNOSTIC_POP() #include // wcslen