Sfoglia il codice sorgente

Fixed unused function warning (#8130)

Michael Böhme 10 mesi fa
parent
commit
57ab2b4226
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      imgui.cpp

+ 2 - 0
imgui.cpp

@@ -1210,9 +1210,11 @@ static int              FindWindowFocusIndex(ImGuiWindow* window);
 // Error Checking and Debug Tools
 static void             ErrorCheckNewFrameSanityChecks();
 static void             ErrorCheckEndFrameSanityChecks();
+#ifndef IMGUI_DISABLE_DEBUG_TOOLS
 static void             UpdateDebugToolItemPicker();
 static void             UpdateDebugToolStackQueries();
 static void             UpdateDebugToolFlashStyleColor();
+#endif
 
 // Inputs
 static void             UpdateKeyboardInputs();