[Bf-blender-cvs] [044dd42a051] master: Cleanup: Undo system: minor simplification in non-debug code.

Bastien Montagne noreply at git.blender.org
Thu Jan 7 15:58:28 CET 2021


Commit: 044dd42a0515e86ac768d4ad3d8aef4d7eda70f4
Author: Bastien Montagne
Date:   Thu Jan 7 12:06:55 2021 +0100
Branches: master
https://developer.blender.org/rB044dd42a0515e86ac768d4ad3d8aef4d7eda70f4

Cleanup: Undo system: minor simplification in non-debug code.

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

M	source/blender/blenkernel/intern/undo_system.c

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

diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c
index 5544e151ddb..9c7e226007a 100644
--- a/source/blender/blenkernel/intern/undo_system.c
+++ b/source/blender/blenkernel/intern/undo_system.c
@@ -252,9 +252,8 @@ static void undosys_stack_validate(UndoStack *ustack, bool expect_non_empty)
   }
 }
 #else
-static void undosys_stack_validate(UndoStack *ustack, bool expect_non_empty)
+static void undosys_stack_validate(UndoStack *UNUSED(ustack), bool UNUSED(expect_non_empty))
 {
-  UNUSED_VARS(ustack, expect_non_empty);
 }
 #endif



More information about the Bf-blender-cvs mailing list