Backends: further zealous warning fixes. (#9247)

This commit is contained in:
ocornut
2026-02-16 16:45:08 +01:00
parent fbe973a8d0
commit acdaaef625
3 changed files with 28 additions and 0 deletions
+10
View File
@@ -50,6 +50,12 @@
//#define IMGUI_IMPL_VULKAN_VOLK_FILENAME <volk.h> // Default
// Reminder: make those changes in your imconfig.h file, not here!
// Clang/GCC warnings with -Weverything
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast
#endif
#if defined(IMGUI_IMPL_VULKAN_NO_PROTOTYPES) && !defined(VK_NO_PROTOTYPES)
#define VK_NO_PROTOTYPES
#endif
@@ -261,4 +267,8 @@ struct ImGui_ImplVulkanH_Window
}
};
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#endif // #ifndef IMGUI_DISABLE