mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
Fixed unused argument warning when compiling with IM_ASERT() evaluating to an empty macro.
This commit is contained in:
parent
3c15dffc94
commit
77833003ff
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user