Browse Source

removed some warnings

Former-commit-id: 0c3d725c2484481979acec2663e8e19ebacf81b3
dpanozzo 13 years ago
parent
commit
e1f423c312
3 changed files with 7 additions and 7 deletions
  1. 1 1
      include/igl/per_corner_normals.cpp
  2. 1 1
      include/igl/verbose.h
  3. 5 5
      include/igl/writeOBJ.cpp

+ 1 - 1
include/igl/per_corner_normals.cpp

@@ -23,7 +23,7 @@ IGL_INLINE void igl::per_corner_normals(
 
 template <typename DerivedV, typename DerivedF, typename IndexType>
 IGL_INLINE void igl::per_corner_normals(
-                                   const Eigen::PlainObjectBase<DerivedV>& V,
+                                   const Eigen::PlainObjectBase<DerivedV>& /*V*/,
                                    const Eigen::PlainObjectBase<DerivedF>& F,
                                    const Eigen::PlainObjectBase<DerivedV>& FN,
                                    const std::vector<std::vector<IndexType> >& VF,

+ 1 - 1
include/igl/verbose.h

@@ -12,7 +12,7 @@
 namespace igl
 {
   IGL_INLINE int verbose(const char * msg,...);
-};
+}
 
 #ifdef IGL_HEADER_ONLY
 #  include "verbose.cpp"

+ 5 - 5
include/igl/writeOBJ.cpp

@@ -45,7 +45,7 @@ IGL_INLINE bool igl::writeOBJ(
     return false;                                              
   }
   // Loop over V
-  for(size_t i = 0;i<V.rows();i++)
+  for(unsigned i = 0;i<V.rows();i++)
   {
     fprintf(obj_file,"v %0.15g %0.15g %0.15g\n",
             V(i,0),
@@ -57,7 +57,7 @@ IGL_INLINE bool igl::writeOBJ(
   
   if(write_N)
   {
-    for(size_t i = 0;i<CN.rows();i++)
+    for(unsigned i = 0;i<CN.rows();i++)
     {
       fprintf(obj_file,"v %0.15g %0.15g %0.15g\n",
               CN(i,0),
@@ -72,7 +72,7 @@ IGL_INLINE bool igl::writeOBJ(
   
   if(write_texture_coords)
   {
-    for(size_t i = 0;i<TC.rows();i++)
+    for(unsigned i = 0;i<TC.rows();i++)
     {
       fprintf(obj_file, "vt %0.15g %0.15g\n",TC(i,0),1-TC(i,1));
     }
@@ -80,10 +80,10 @@ IGL_INLINE bool igl::writeOBJ(
   }
   
   // loop over F
-  for(size_t i = 0;i<F.rows();++i)
+  for(unsigned i = 0;i<F.rows();++i)
   {
     fprintf(obj_file,"f");
-    for(size_t j = 0; j<F.cols();++j)
+    for(unsigned j = 0; j<F.cols();++j)
     {
       // OBJ is 1-indexed
       fprintf(obj_file," %u",F(i,j)+1);