diff --git a/libs/waveview/wave_view_private.cc b/libs/waveview/wave_view_private.cc index bc8f64b0aa..88e7470a4f 100644 --- a/libs/waveview/wave_view_private.cc +++ b/libs/waveview/wave_view_private.cc @@ -207,7 +207,10 @@ WaveViewCache::get_cache_group (boost::shared_ptr source) boost::shared_ptr new_group (new WaveViewCacheGroup (*this)); - bool inserted = cache_group_map.insert (std::make_pair (source, new_group)).second; +#ifndef NDEBUG + bool inserted = +#endif + cache_group_map.insert (std::make_pair (source, new_group)).second; assert (inserted);