From 4cdd998be8bdbdc71cdd911c9cc95cb31b058a04 Mon Sep 17 00:00:00 2001 From: omar Date: Sun, 19 Nov 2017 00:49:23 +0100 Subject: [PATCH] Demo: Fix warning "format not a string literal and no format arguments" for over-zealous compilers settings. (#1450, #1451) --- imgui_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 9ac07b76..d6475d01 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -1341,7 +1341,7 @@ void ImGui::ShowTestWindow(bool* p_open) if (ImGui::Button("Select..")) ImGui::OpenPopup("select"); ImGui::SameLine(); - ImGui::Text(selected_fish == -1 ? "" : names[selected_fish]); + ImGui::TextUnformatted(selected_fish == -1 ? "" : names[selected_fish]); if (ImGui::BeginPopup("select")) { ImGui::Text("Aquarium");