summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-01 15:08:14 +0000
committersmatz <smatz@openttd.org>2008-06-01 15:08:14 +0000
commit69ebefe1aced0abd8885d4a30fa0387c0cafd5cc (patch)
treea69876051417b114e25b34280ada013d1522cee1 /src/blitter
parent462384651566943a1d14f49ab988ae6af439c94c (diff)
downloadopenttd-69ebefe1aced0abd8885d4a30fa0387c0cafd5cc.tar.xz
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
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);
}