From: Daniel Arndt Date: Mon, 9 Oct 2017 12:51:30 +0000 (+0200) Subject: Add missing (unused) return value in Convert::to_pattern X-Git-Tag: v9.0.0-rc1~977^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e57c99d85edbd3e20b81afa670308b9293970f02;p=dealii.git Add missing (unused) return value in Convert::to_pattern --- diff --git a/include/deal.II/base/patterns.h b/include/deal.II/base/patterns.h index cfeda361e6..b6d168d2e7 100644 --- a/include/deal.II/base/patterns.h +++ b/include/deal.II/base/patterns.h @@ -1162,6 +1162,10 @@ namespace Patterns else if (std::is_floating_point::value) return std_cxx14::make_unique( -std::numeric_limits::max(), std::numeric_limits::max()); + + Assert(false, ExcNotImplemented()); + //the following line should never be invoked + return nullptr; } static std::string to_string(const T &value,