(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts

This commit is contained in:
smatz
2008-06-01 15:08:14 +00:00
parent 4623846515
commit 69ebefe1ac
6 changed files with 12 additions and 27 deletions

View File

@@ -43,11 +43,8 @@ protected:
if (name == NULL) return;
this->name = strdup(name);
#if !defined(NDEBUG) || defined(WITH_ASSERT)
/* NDEBUG disables asserts and gives a warning: unused variable 'P' */
std::pair<Blitters::iterator, bool> P =
#endif /* !NDEBUG */
GetBlitters().insert(Blitters::value_type(name, this));
std::pair<Blitters::iterator, bool> P = GetBlitters().insert(Blitters::value_type(name, this));
assert(P.second);
}