Fixed warning with VS2015 in stb_truetype.h

This commit is contained in:
ocornut 2015-09-07 15:51:43 +01:00
parent 7d6ddbe5c8
commit 8a3593257f
1 changed files with 9 additions and 0 deletions

View File

@ -48,6 +48,11 @@ namespace IMGUI_STB_NAMESPACE
{
#endif
#ifdef _MSC_VER
#pragma warning (push)
#pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
@ -76,6 +81,10 @@ namespace IMGUI_STB_NAMESPACE
#pragma clang diagnostic pop
#endif
#ifdef _MSC_VER
#pragma warning (pop)
#endif
#ifdef IMGUI_STB_NAMESPACE
} // namespace ImGuiStb
using namespace IMGUI_STB_NAMESPACE;