Fix some warnings

This commit is contained in:
Maxime Gimeno 2020-12-09 14:34:14 +01:00
parent 436a81b8f6
commit 0bbb6c6f4e
3 changed files with 2 additions and 6 deletions

View File

@ -282,7 +282,6 @@ void test_bgl_OFF(const char* filename)
{
assert(get(vnm2, v) != CGAL::NULL_VECTOR);
assert(get(vcm2, v) != CGAL::Color());
assert(get(vtm2, v) != Point_2());
}
for(const auto f : faces(fg))
@ -306,7 +305,6 @@ void test_bgl_OFF(const char* filename)
{
assert(get(vnm, v) != CGAL::NULL_VECTOR);
assert(get(vcm, v) != CGAL::Color());
assert(get(vtm, v) != Point_2());
}
// write with OFF
{
@ -334,7 +332,6 @@ void test_bgl_OFF(const char* filename)
{
assert(get(vnm2, v) != CGAL::NULL_VECTOR);
assert(get(vcm2, v) != CGAL::Color());
assert(get(vtm2, v) != Point_2());
}
for(const auto f : faces(fg2))
@ -366,7 +363,6 @@ void test_bgl_OFF(const char* filename)
{
assert(get(vnm2, v) != CGAL::NULL_VECTOR);
assert(get(vcm2, v) != CGAL::Color());
assert(get(vtm2, v) != Point_2());
}
for(const auto f : faces(fg2))

View File

@ -197,7 +197,7 @@ namespace CGAL {
for (i=0; i<scanner.size_of_facets(); i++)
{
B.begin_facet();
std::size_t no;
std::size_t no=0;
scanner.scan_facet(no, i);
/* TODO manage errors
if( ! in || B.error() || no < 3) {

View File

@ -105,7 +105,7 @@ void Polyhedron_scan_OFF<HDS>:: operator()(HDS& target)
for(i=0; i<scanner.size_of_facets(); ++i)
{
B.begin_facet();
std::size_t no;
std::size_t no = 0;
scanner.scan_facet( no, i);
if(! m_in || B.error() || no < 3)
{