diff options
author | smatz <smatz@openttd.org> | 2008-06-01 15:08:14 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-01 15:08:14 +0000 |
commit | 69ebefe1aced0abd8885d4a30fa0387c0cafd5cc (patch) | |
tree | a69876051417b114e25b34280ada013d1522cee1 /src/blitter | |
parent | 462384651566943a1d14f49ab988ae6af439c94c (diff) | |
download | openttd-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.hpp | 7 |
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); } |