mirror of https://github.com/CGAL/cgal
various tweaks to avoid warnings and obscure errors
This commit is contained in:
parent
9daee64732
commit
81dac44112
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef CGAL_USE_SOQT
|
||||
#ifdef CGAL_USE_COIN
|
||||
int n=10;
|
||||
int d=2;
|
||||
bool print_help=false;
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ public:
|
|||
CGAL_precondition(it->object() == k);
|
||||
|
||||
v_.pre_remove_vertex(it);
|
||||
if (next(it) != end()) {
|
||||
if (next(it) != Iterator(end())) {
|
||||
simulator_->delete_event(it->event());
|
||||
it->set_event(Event_key());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1032,8 +1032,9 @@ protected:
|
|||
std::vector<Cell_handle> ics;
|
||||
triangulation().incident_cells(v, std::back_inserter(ics));
|
||||
for (unsigned int i=0; i< ics.size(); ++i) {
|
||||
int j;
|
||||
bool ret=ics[i]->has_vertex(v, j);
|
||||
int j=-1;// disable warning
|
||||
bool ret=ics[i]->has_vertex(v, j); // initializes j
|
||||
CGAL_assertion(j != -1);
|
||||
CGAL_assertion(ret);
|
||||
for (int k=0; k<4 ; ++k) {
|
||||
if (k==j) continue;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
template <class NT>
|
||||
void check_nt(NT v) {
|
||||
NT zero(0);
|
||||
assert(v <= 0 || v > 0); // break symmetry due to compiler warning
|
||||
assert(v <= zero || v > zero); // break symmetry due to compiler warning
|
||||
if (std::numeric_limits<NT>::has_infinity) {
|
||||
NT inf= std::numeric_limits<NT>::infinity();
|
||||
//NT inf2=inf;
|
||||
|
|
|
|||
Loading…
Reference in New Issue