Parcourir la source

Remove warning at compilation.

Eric Ramat il y a 6 ans
Parent
commit
654ca84c5b
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 3 0
      src/artis/context/StateValues.hpp
  2. 1 2
      src/artis/kernel/Any.hpp

+ 3 - 0
src/artis/context/StateValues.hpp

@@ -59,6 +59,7 @@ public:
             return it->second;
         } else {
             assert(false);
+            return it->second;
         }
     }
 
@@ -71,6 +72,7 @@ public:
             return it->second;
         } else {
             assert(false);
+            return it->second;
         }
     }
 
@@ -83,6 +85,7 @@ public:
             return it->second;
         } else {
             assert(false);
+            return it->second;
         }
     }
 

+ 1 - 2
src/artis/kernel/Any.hpp

@@ -30,8 +30,6 @@
 #include <utility>
 #include <vector>
 
-#include <iostream>
-
 namespace artis { namespace kernel {
 
 enum ValueTypeID { DOUBLE, INT, BOOL, DOUBLE_VECTOR, INT_VECTOR, BOOL_VECTOR,
@@ -225,6 +223,7 @@ public:
             }
         }
         assert(false);
+        return context::Value();
     }
 
     template < typename T >