From 77833003ffb69f4cb769eebccd3c1a89f0c1c337 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 19 Feb 2019 17:32:14 +0100 Subject: [PATCH] Fixed unused argument warning when compiling with IM_ASERT() evaluating to an empty macro. --- imgui_widgets.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 2ac389c10..f48a55bc3 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -2616,6 +2616,7 @@ int ImParseFormatPrecision(const char* fmt, int default_precision) // FIXME: Facilitate using this in variety of other situations. bool ImGui::InputScalarAsWidgetReplacement(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* data_ptr, const char* format) { + IM_UNUSED(id); ImGuiContext& g = *GImGui; // On the first frame, g.ScalarAsInputTextId == 0, then on subsequent frames it becomes == id.