disable/enable warnings

This commit is contained in:
Andreas Fabri 2018-01-24 08:59:20 +00:00
parent 94c162d249
commit dc2f37a4ae
9 changed files with 25 additions and 5 deletions

View File

@ -590,7 +590,7 @@ public:
poly.getCoeff(1), poly.getCoeff(1),
poly.getCoeff(0), poly.getCoeff(0),
buffer); buffer);
unsigned int num_of_roots = std::distance(&buffer[0], end_buffer); std::ptrdiff_t num_of_roots = std::distance(&buffer[0], end_buffer);
for (i = 0; i < num_of_roots; ++i) for (i = 0; i < num_of_roots; ++i)
{ {

View File

@ -113,7 +113,7 @@ private:
std::vector<float> v; std::vector<float> v;
m_classifier (m_training_set[k], v); m_classifier (m_training_set[k], v);
float min = std::numeric_limits<float>::max(); float min = (std::numeric_limits<float>::max)();
for(std::size_t l = 0; l < v.size(); ++ l) for(std::size_t l = 0; l < v.size(); ++ l)
if (v[l] < min) if (v[l] < min)
{ {
@ -904,7 +904,7 @@ private:
std::vector<float> v; std::vector<float> v;
(*this) (training_sets[j][k], v); (*this) (training_sets[j][k], v);
float min = std::numeric_limits<float>::max(); float min = (std::numeric_limits<float>::max)();
for(std::size_t l = 0; l < m_labels.size(); ++ l) for(std::size_t l = 0; l < m_labels.size(); ++ l)
if (v[l] < min) if (v[l] < min)
{ {

View File

@ -22,6 +22,8 @@
#ifndef CGAL_COMBINATION_ENUMERATOR_H #ifndef CGAL_COMBINATION_ENUMERATOR_H
#define CGAL_COMBINATION_ENUMERATOR_H #define CGAL_COMBINATION_ENUMERATOR_H
#include <CGAL/disable_warnings.h>
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <vector> #include <vector>
@ -136,4 +138,6 @@ public:
} // end of namespace CGAL } // end of namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_COMBINATION_ENUMERATOR_H #endif // CGAL_COMBINATION_ENUMERATOR_H

View File

@ -27,6 +27,8 @@
#ifndef CGAL_RANDOM_POLYGON_2_SWEEP_H #ifndef CGAL_RANDOM_POLYGON_2_SWEEP_H
#define CGAL_RANDOM_POLYGON_2_SWEEP_H #define CGAL_RANDOM_POLYGON_2_SWEEP_H
#include <CGAL/disable_warnings.h>
#include <CGAL/enum.h> #include <CGAL/enum.h>
#include <CGAL/Polygon_2/polygon_assertions.h> #include <CGAL/Polygon_2/polygon_assertions.h>
#include <set> #include <set>
@ -582,4 +584,6 @@ void make_simple_polygon(Iterator points_begin, Iterator points_end,
} // end of namespace CGAL } // end of namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_RANDOM_POLYGON_2_SWEEP_H #endif // CGAL_RANDOM_POLYGON_2_SWEEP_H

View File

@ -28,6 +28,7 @@
#include <CGAL/license/Mesh_3.h> #include <CGAL/license/Mesh_3.h>
#include <CGAL/disable_warnings.h>
#include <CGAL/Mesh_3/sliver_criteria.h> #include <CGAL/Mesh_3/sliver_criteria.h>
#include <CGAL/Mesh_3/Slivers_exuder.h> #include <CGAL/Mesh_3/Slivers_exuder.h>
@ -85,4 +86,6 @@ exude_mesh_3_impl(C3T3& c3t3,
} //namespace CGAL } //namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_EXUDE_MESH_3_H #endif // CGAL_EXUDE_MESH_3_H

View File

@ -28,6 +28,7 @@
#include <CGAL/license/Mesh_3.h> #include <CGAL/license/Mesh_3.h>
#include <CGAL/disable_warnings.h>
#include <CGAL/Mesh_3/global_parameters.h> #include <CGAL/Mesh_3/global_parameters.h>
#include <CGAL/Mesh_3/Mesh_global_optimizer.h> #include <CGAL/Mesh_3/Mesh_global_optimizer.h>
@ -108,5 +109,6 @@ lloyd_optimize_mesh_3_impl(C3T3& c3t3,
} // end namespace CGAL } // end namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_LLOYD_OPTIMIZE_MESH_3_H #endif // CGAL_LLOYD_OPTIMIZE_MESH_3_H

View File

@ -28,7 +28,7 @@
#include <CGAL/license/Mesh_3.h> #include <CGAL/license/Mesh_3.h>
#include <CGAL/disable_warnings.h>
#include <CGAL/Mesh_3/global_parameters.h> #include <CGAL/Mesh_3/global_parameters.h>
#include <CGAL/Mesh_3/Mesh_global_optimizer.h> #include <CGAL/Mesh_3/Mesh_global_optimizer.h>
@ -107,5 +107,6 @@ odt_optimize_mesh_3_impl(C3T3& c3t3,
} // end namespace CGAL } // end namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_ODT_OPTIMIZE_MESH_3_H #endif // CGAL_ODT_OPTIMIZE_MESH_3_H

View File

@ -28,7 +28,7 @@
#include <CGAL/license/Mesh_3.h> #include <CGAL/license/Mesh_3.h>
#include <CGAL/disable_warnings.h>
#include <CGAL/Mesh_3/global_parameters.h> #include <CGAL/Mesh_3/global_parameters.h>
#include <CGAL/Mesh_3/sliver_criteria.h> #include <CGAL/Mesh_3/sliver_criteria.h>
@ -134,4 +134,6 @@ perturb_mesh_3_impl(C3T3& c3t3,
} //namespace CGAL } //namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_PERTURB_MESH_3_H #endif // CGAL_PERTURB_MESH_3_H

View File

@ -26,6 +26,8 @@
#ifndef CGAL_POLYGON_2_SIMPLICITY_H #ifndef CGAL_POLYGON_2_SIMPLICITY_H
#define CGAL_POLYGON_2_SIMPLICITY_H #define CGAL_POLYGON_2_SIMPLICITY_H
#include <CGAL/disable_warnings.h>
#include <CGAL/enum.h> #include <CGAL/enum.h>
#include <CGAL/Polygon_2/polygon_assertions.h> #include <CGAL/Polygon_2/polygon_assertions.h>
#include <set> #include <set>
@ -501,4 +503,6 @@ bool is_simple_polygon(Iterator points_begin, Iterator points_end,
} // end of namespace CGAL } // end of namespace CGAL
#include <CGAL/enable_warnings.h>
#endif #endif