[Bf-blender-cvs] [e0b6c8f7774] master: Fix possible fall-through in outliner region listener

Sergey Sharybin noreply at git.blender.org
Mon Dec 28 10:00:23 CET 2020


Commit: e0b6c8f77743d1fa489bc574cbfe1ef4f3415342
Author: Sergey Sharybin
Date:   Mon Dec 28 09:57:59 2020 +0100
Branches: master
https://developer.blender.org/rBe0b6c8f77743d1fa489bc574cbfe1ef4f3415342

Fix possible fall-through in outliner region listener

Reported as a strict compiler warning, and the need of fall-through is
not needed from just reading the code.

If it is something what must happen, the reasoning is to be explained
in the comment, and ATTR_FALLTHROUGH is to be used.

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

M	source/blender/editors/space_outliner/space_outliner.c

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

diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index 06946e4c90b..57a063a01ca 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -118,6 +118,7 @@ static void outliner_main_region_listener(wmWindow *UNUSED(win),
           ED_region_tag_redraw(region);
           break;
       }
+      break;
     case NC_SCENE:
       switch (wmn->data) {
         case ND_OB_ACTIVE:



More information about the Bf-blender-cvs mailing list