diff --git a/3rdparty/glsl-optimizer/autogen.sh b/3rdparty/glsl-optimizer/autogen.sh old mode 100755 new mode 100644 diff --git a/3rdparty/glsl-optimizer/generateParsers.sh b/3rdparty/glsl-optimizer/generateParsers.sh old mode 100755 new mode 100644 diff --git a/3rdparty/ocornut-imgui/imgui.cpp b/3rdparty/ocornut-imgui/imgui.cpp index 8a26d9cff..bc9460944 100644 --- a/3rdparty/ocornut-imgui/imgui.cpp +++ b/3rdparty/ocornut-imgui/imgui.cpp @@ -5563,7 +5563,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f ImGuiTextEditCallbackData callback_data; memset(&callback_data, 0, sizeof(ImGuiTextEditCallbackData)); callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter; - callback_data.EventChar = c; + callback_data.EventChar = ImWchar(c); callback_data.Flags = flags; callback_data.UserData = user_data; if (callback(&callback_data) != 0) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 6df549c1c..da9c7a88e 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -50,6 +50,8 @@ // embedded font #include "droidsans.ttf.h" +BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4244); // warning C4244: '=' : conversion from '' to '', possible loss of data + #define USE_NANOVG_FONT 0 #define IMGUI_CONFIG_MAX_FONTS 20 diff --git a/examples/common/nanovg/nanovg_bgfx.cpp b/examples/common/nanovg/nanovg_bgfx.cpp index 394022370..12afdb9fd 100644 --- a/examples/common/nanovg/nanovg_bgfx.cpp +++ b/examples/common/nanovg/nanovg_bgfx.cpp @@ -32,6 +32,8 @@ #include +BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4244); // warning C4244: '=' : conversion from '' to '', possible loss of data + namespace { #include "vs_nanovg_fill.bin.h" diff --git a/include/bgfxplatform.h b/include/bgfxplatform.h old mode 100755 new mode 100644 diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 20ac1323d..4380f8947 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -627,6 +627,7 @@ namespace bgfx { namespace d3d11 if (SUCCEEDED(hr) ) { +#if BX_COMPILER_MSVC BX_PRAGMA_DIAGNOSTIC_PUSH(); BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4530) // warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc try @@ -641,6 +642,9 @@ BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4530) // warning C4530: C++ exception handler hr = E_FAIL; } BX_PRAGMA_DIAGNOSTIC_POP(); +#else + hr = device->GetAdapter(&adapter); +#endif // BX_COMPILER_MSVC } } BGFX_FATAL(SUCCEEDED(hr), Fatal::UnableToInitialize, "Unable to create Direct3D11 device.");