Browse Source

Fixed warnings.

Branimir Karadžić 5 years ago
parent
commit
73508ac80f
1 changed files with 4 additions and 3 deletions
  1. 4 3
      examples/common/font/font_manager.cpp

+ 4 - 3
examples/common/font/font_manager.cpp

@@ -4,15 +4,16 @@
  */
  */
 
 
 #include <bx/bx.h>
 #include <bx/bx.h>
-
 #include <stb/stb_truetype.h>
 #include <stb/stb_truetype.h>
-
 #include "../common.h"
 #include "../common.h"
-
 #include <bgfx/bgfx.h>
 #include <bgfx/bgfx.h>
 
 
+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
 #define SDF_IMPLEMENTATION
 #include <sdf/sdf.h>
 #include <sdf/sdf.h>
+BX_PRAGMA_DIAGNOSTIC_POP()
 
 
 #include <wchar.h> // wcslen
 #include <wchar.h> // wcslen