Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[xbt] Fix 'control reaches end of non-void function' in Result::get()
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 3 Jun 2016 11:16:54 +0000 (13:16 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 3 Jun 2016 11:16:54 +0000 (13:16 +0200)
include/xbt/future.hpp

index 7fdfb0b..d583c34 100644 (file)
@@ -118,6 +118,7 @@ public:
   {
     switch(status_) {
       case ResultStatus::invalid:
+      default:
         throw std::logic_error("Invalid result");
       case ResultStatus::value: {
         T value = std::move(value_);