1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Backends: Fixes zealous warnings (#5760)

This commit is contained in:
ocornut 2023-03-23 18:17:45 +01:00
parent 7dcf129b3b
commit 8a6911b894
5 changed files with 47 additions and 2 deletions

View file

@ -31,6 +31,12 @@
#include <stdint.h> // intptr_t
#endif
// Clang warnings with -Weverything
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness
#endif
// SDL
#include <SDL.h>
#if !SDL_VERSION_ATLEAST(2,0,17)
@ -248,3 +254,7 @@ void ImGui_ImplSDLRenderer_DestroyDeviceObjects()
{
ImGui_ImplSDLRenderer_DestroyFontsTexture();
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif