[Scummvm-git-logs] scummvm master -> 7e4fc49debef5b33263c7b87dff0b180500639c2

digitall noreply at scummvm.org
Mon Mar 21 11:20:49 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7e4fc49deb WINTERMUTE: Remove Unecessary Macro Guard From Script Stack Code


Commit: 7e4fc49debef5b33263c7b87dff0b180500639c2
    https://github.com/scummvm/scummvm/commit/7e4fc49debef5b33263c7b87dff0b180500639c2
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-21T11:19:34Z

Commit Message:
WINTERMUTE: Remove Unecessary Macro Guard From Script Stack Code

This was causing Undefined Macro GCC Compiler Warnings when -Wundef
was passed.

Changed paths:
    engines/wintermute/base/scriptables/script_stack.cpp


diff --git a/engines/wintermute/base/scriptables/script_stack.cpp b/engines/wintermute/base/scriptables/script_stack.cpp
index dd5c371c012..3ec8e2d65c4 100644
--- a/engines/wintermute/base/scriptables/script_stack.cpp
+++ b/engines/wintermute/base/scriptables/script_stack.cpp
@@ -41,10 +41,7 @@ ScStack::ScStack(BaseGame *inGame) : BaseClass(inGame) {
 
 //////////////////////////////////////////////////////////////////////////
 ScStack::~ScStack() {
-
-#if _DEBUG
 	//_gameRef->LOG(0, "STAT: Stack size: %d, SP=%d", _values.size(), _sP);
-#endif
 
 	for (uint32 i = 0; i < _values.size(); i++) {
 		delete _values[i];




More information about the Scummvm-git-logs mailing list