summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/factory.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp
index bd0a6daa8..f9dd9c463 100644
--- a/src/blitter/factory.hpp
+++ b/src/blitter/factory.hpp
@@ -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);
}