]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add missing (unused) return value in Convert::to_pattern 5214/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 12:51:30 +0000 (14:51 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 14:50:18 +0000 (16:50 +0200)
include/deal.II/base/patterns.h

index cfeda361e6dcc9049374ac9fe09abf95ef725220..b6d168d2e71a64db66076d5fd38c013c21962212 100644 (file)
@@ -1162,6 +1162,10 @@ namespace Patterns
         else if (std::is_floating_point<T>::value)
           return std_cxx14::make_unique<Patterns::Double>(
                    -std::numeric_limits<T>::max(), std::numeric_limits<T>::max());
+
+        Assert(false, ExcNotImplemented());
+        //the following line should never be invoked
+        return nullptr;
       }
 
       static std::string to_string(const T &value,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.