Browse Source

Fixed unused argument warning when compiling with IM_ASERT() evaluating to an empty macro.

omar 6 years ago
parent
commit
77833003ff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      imgui_widgets.cpp

+ 1 - 0
imgui_widgets.cpp

@@ -2616,6 +2616,7 @@ int ImParseFormatPrecision(const char* fmt, int default_precision)
 // FIXME: Facilitate using this in variety of other situations.
 // 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)
 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;
     ImGuiContext& g = *GImGui;
 
 
     // On the first frame, g.ScalarAsInputTextId == 0, then on subsequent frames it becomes == id.
     // On the first frame, g.ScalarAsInputTextId == 0, then on subsequent frames it becomes == id.