Browse Source

avoid warning

Former-commit-id: e33e46f23df71315fb9554169d0535f2464d09fd
Alec Jacobson 9 years ago
parent
commit
f1501ceec5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/igl/cgal/order_facets_around_edge.cpp

+ 2 - 0
include/igl/cgal/order_facets_around_edge.cpp

@@ -258,6 +258,8 @@ void igl::cgal::order_facets_around_edge(
         if (F(fid, 1) != s && F(fid, 1) != d) return F(fid, 1);
         if (F(fid, 2) != s && F(fid, 2) != d) return F(fid, 2);
         assert(false);
+        // avoid warning
+        return -1;
     };
 
     const size_t N = adj_faces.size();