From b2fc0cd4278dacb085aa0c3b2d50238ce8661d00 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Tue, 13 Aug 2019 14:21:41 -0500 Subject: [PATCH] Fix format-security-related build failure Calling a printf-like function without a format string will cause gcc to emit a warhing and causes a build failure on distros which build everything with -Werror=format-security. Signed-off-by: Jason Tibbitts --- src/slic3r/GUI/ImGuiWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/ImGuiWrapper.cpp b/src/slic3r/GUI/ImGuiWrapper.cpp index f58266a5d..8e4d9eebf 100644 --- a/src/slic3r/GUI/ImGuiWrapper.cpp +++ b/src/slic3r/GUI/ImGuiWrapper.cpp @@ -354,7 +354,7 @@ bool ImGuiWrapper::undo_redo_list(const ImVec2& size, const bool is_undo, bool ( ImGui::Selectable(item_text, i < hovered); if (ImGui::IsItemHovered()) { - ImGui::SetTooltip(item_text); + ImGui::SetTooltip("%s", item_text); hovered = i; is_hovered = true; }