Compilation warning fix for imgui with clang (Linux); -Wnontrivial-memcall ignored

This commit is contained in:
brunoherbelin
2026-05-08 19:12:11 +02:00
parent 46958ef3d9
commit 936fc527cb
7 changed files with 43 additions and 0 deletions
+1
View File
@@ -486,6 +486,7 @@ set(IMGUI_SRCS
add_library(IMGUI "${IMGUI_SRCS}")
target_compile_definitions(IMGUI PRIVATE "IMGUI_IMPL_OPENGL_LOADER_GLAD")
target_compile_definitions(IMGUI PRIVATE "IMGUI_USE_STB_SPRINTF")
target_compile_options(IMGUI PRIVATE "-Wno-nontrivial-memcall")
message(STATUS "Compiling 'Dear ImGui' from https://github.com/ocornut/imgui.git -- ${IMGUI_INCLUDE_DIRS}")
#
+7
View File
@@ -27,7 +27,14 @@
#include "IconsFontAwesome5.h"
#include "imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnontrivial-memcall"
#endif
#include "imgui_internal.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#include "defines.h"
#include "Settings.h"
+7
View File
@@ -41,7 +41,14 @@
#include "SystemToolkit.h"
#include "ImGuiToolkit.h"
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnontrivial-memcall"
#endif
#include "imgui_internal.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
bool tooltips_enabled = true;
unsigned int textureicons = 0;
+7
View File
@@ -37,7 +37,14 @@
// ImGui
#include "imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnontrivial-memcall"
#endif
#include "imgui_internal.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
+7
View File
@@ -25,7 +25,14 @@
#include "IconsFontAwesome5.h"
#include "Toolkit/ImGuiToolkit.h"
#include "imgui.h"
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnontrivial-memcall"
#endif
#include "imgui_internal.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#include "defines.h"
#include "Log.h"
+7
View File
@@ -31,7 +31,14 @@
#include "Timeline.h"
#include "gst/gstclock.h"
#include "imgui.h"
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnontrivial-memcall"
#endif
#include "imgui_internal.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#include "defines.h"
#include "Log.h"
+7
View File
@@ -20,7 +20,14 @@
#include "imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnontrivial-memcall"
#endif
#include "imgui_internal.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#include "defines.h"
#include "WorkspaceWindow.h"