From 2b804c880b64e40e71e62dfd340795952d6d85b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 5 Jan 2014 22:37:09 +0100 Subject: [PATCH] Fix GCC warning about unused typedef in release mode. --- bench/bench_alloc_shrink_to_fit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bench/bench_alloc_shrink_to_fit.cpp b/bench/bench_alloc_shrink_to_fit.cpp index 627d12a..33bde3e 100644 --- a/bench/bench_alloc_shrink_to_fit.cpp +++ b/bench/bench_alloc_shrink_to_fit.cpp @@ -82,8 +82,10 @@ void vector_test_template(unsigned int num_iterations, unsigned int num_elements cpu_timer timer; timer.resume(); + #ifndef NDEBUG typedef bc::container_detail::integral_constant ::value> alloc_version; + #endif for(unsigned int r = 0; r != num_iterations; ++r){ bc::vector v(num_elements);