From 91bcfb290a1525c0f512a998c5ad82244125cc5f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 21 Sep 2013 09:48:11 +0300 Subject: COMMON: Use unused variables in coroutine macros. This should fix couple of hundreds of Coverity detected defects. --- common/coroutines.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/coroutines.h b/common/coroutines.h index 834c67f6e4..409a8977bd 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:; -- cgit v1.2.3