diff options
Diffstat (limited to 'src/blitter/factory.hpp')
-rw-r--r-- | src/blitter/factory.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp index 8f289c2ce..beb35cba5 100644 --- a/src/blitter/factory.hpp +++ b/src/blitter/factory.hpp @@ -39,7 +39,11 @@ protected: if (name == NULL) return; this->name = strdup(name); - std::pair<Blitters::iterator, bool> P = GetBlitters().insert(Blitters::value_type(name, this)); +#if !defined(NDEBUG) + /* 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)); assert(P.second); } |