Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-10-19 18:31:56 +0300
committerSergey Sharybin <sergey@blender.org>2022-10-19 18:32:43 +0300
commitbad734081180ed31417ea382d5093f8e6fd35129 (patch)
treefc8d29c17fc0f16a65bd00c8785435d4ed73605a /source/blender
parent96c085d4af151f0ff20f23f1fe0428e2d8fbdee2 (diff)
Fix control reaches end of non-void function error
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c5
1 files changed, 5 insertions, 0 deletions
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;
}
/** \} */