소스 검색

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())
             SetClipboardText(g.LogBuffer.begin());
         break;
+    case ImGuiLogType_None:
+        IM_ASSERT(0);
+        break;
     }
 
     g.LogEnabled = false;