[Bf-blender-cvs] [bad73408118] master: Fix control reaches end of non-void function error

Sergey Sharybin noreply at git.blender.org
Wed Oct 19 17:33:43 CEST 2022


Commit: bad734081180ed31417ea382d5093f8e6fd35129
Author: Sergey Sharybin
Date:   Wed Oct 19 17:31:56 2022 +0200
Branches: master
https://developer.blender.org/rBbad734081180ed31417ea382d5093f8e6fd35129

Fix control reaches end of non-void function error

===================================================================

M	source/blender/windowmanager/intern/wm_window.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index ce573a9285b..2ca7b5f470d 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -1633,6 +1633,11 @@ GHOST_TDrawingContextType wm_ghost_drawing_context_type(const eGPUBackendType gp
       return GHOST_kDrawingContextTypeNone;
 #endif
   }
+
+  /* Avoid control reaches end of non-void function compilation warning, which could be promoted
+   * to error. */
+  BLI_assert_unreachable();
+  return GHOST_kDrawingContextTypeNone;
 }
 
 /** \} */



More information about the Bf-blender-cvs mailing list