From 42e7aaecec58b90085f2cebc09079a54b2900a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 17 Nov 2021 15:33:04 +0100 Subject: [PATCH] Fixes #200 (Warning) --- src/global_resource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/global_resource.cpp b/src/global_resource.cpp index a7b77c2..ca2dc68 100644 --- a/src/global_resource.cpp +++ b/src/global_resource.cpp @@ -54,11 +54,10 @@ struct null_memory_resource_imp (void)bytes; (void)alignment; #if defined(BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS) || defined(BOOST_NO_EXCEPTIONS) throw_bad_alloc(); + return 0; #else throw std::bad_alloc(); #endif - - return 0; } void do_deallocate(void* p, std::size_t bytes, std::size_t alignment) BOOST_OVERRIDE