[Scummvm-cvs-logs] scummvm master -> 91bcfb290a1525c0f512a998c5ad82244125cc5f

sev- sev at scummvm.org
Sat Sep 21 08:49:49 CEST 2013


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:
91bcfb290a COMMON: Use unused variables in coroutine macros.


Commit: 91bcfb290a1525c0f512a998c5ad82244125cc5f
    https://github.com/scummvm/scummvm/commit/91bcfb290a1525c0f512a998c5ad82244125cc5f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-09-20T23:49:17-07:00

Commit Message:
COMMON: Use unused variables in coroutine macros.

This should fix couple of hundreds of Coverity detected defects.

Changed paths:
    common/coroutines.h



diff --git a/common/coroutines.h b/common/coroutines.h
index 834c67f..409a897 100644
--- a/common/coroutines.h
+++ b/common/coroutines.h
@@ -146,6 +146,7 @@ public:
 #define CORO_BEGIN_CODE(x) \
 	if (&coroParam == &Common::nullContext) assert(!Common::nullContext); \
 	if (!x) { coroParam = x = new CoroContextTag(); } \
+	x->DUMMY = 0; \
 	Common::CoroContextHolder tmpHolder(coroParam); \
 	switch (coroParam->_line) { case 0:;
 






More information about the Scummvm-git-logs mailing list