瀏覽代碼

Fixes warning caused by a missing switch/case. (#2382, #2381)

David Wingrove 6 年之前
父節點
當前提交
5d7bd2309b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      imgui.cpp

+ 3 - 0
imgui.cpp

@@ -8930,6 +8930,9 @@ void ImGui::LogFinish()
         if (!g.LogBuffer.empty())
         if (!g.LogBuffer.empty())
             SetClipboardText(g.LogBuffer.begin());
             SetClipboardText(g.LogBuffer.begin());
         break;
         break;
+    case ImGuiLogType_None:
+        IM_ASSERT(0);
+        break;
     }
     }
 
 
     g.LogEnabled = false;
     g.LogEnabled = false;