From 02b3f95a3a5b5625f4b265d161c28bc2cce6211d Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Fri, 25 Jan 2013 21:35:58 +0000 Subject: [PATCH] Fix failing (because of gcc<4.6) test for release. [[Imported from SVN: r7090]] --- dune/common/test/shared_ptrtest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/common/test/shared_ptrtest.cc b/dune/common/test/shared_ptrtest.cc index d06edb7ea..955279894 100644 --- a/dune/common/test/shared_ptrtest.cc +++ b/dune/common/test/shared_ptrtest.cc @@ -158,8 +158,8 @@ int main(){ // test constructor from nullptr #if defined(SHARED_PTR_HEADER) && !defined(HAVE_NULLPTR) - #error Construction of shared_ptr from a nullptr will not work as compiler - #error does not support the latter. + #warning Construction of shared_ptr from a nullptr will not work as compiler + #warning does not support the latter. shared_ptr<double> bar_null=shared_ptr<double>(); #else shared_ptr<double> bar_null(nullptr); -- GitLab