Add (void) casts for variables used only in assert()s.
Report from Akim Demaille. * src/ltlvisit/snf.cc, src/ta/taexplicit.cc, src/taalgos/tgba2ta.cc, src/tgbaalgos/dupexp.cc, src/tgbaalgos/stutter.cc: Here.
This commit is contained in:
parent
78e63d0324
commit
f2ba94f4d4
5 changed files with 7 additions and 2 deletions
|
|
@ -56,6 +56,7 @@ namespace spot
|
||||||
visit(const constant* c)
|
visit(const constant* c)
|
||||||
{
|
{
|
||||||
assert(c == constant::empty_word_instance());
|
assert(c == constant::empty_word_instance());
|
||||||
|
(void)c;
|
||||||
result_ = constant::false_instance();
|
result_ = constant::false_instance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- coding: utf-8 -*-
|
// -*- coding: utf-8 -*-
|
||||||
// Copyright (C) 2010, 2011, 2012, 2013, 2014 Laboratoire de Recherche
|
// Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 Laboratoire de
|
||||||
// et Développement de l'Epita (LRDE).
|
// Recherche et Développement de l'Epita (LRDE).
|
||||||
//
|
//
|
||||||
// This file is part of Spot, a model checking library.
|
// This file is part of Spot, a model checking library.
|
||||||
//
|
//
|
||||||
|
|
@ -363,6 +363,7 @@ namespace spot
|
||||||
{
|
{
|
||||||
state_ta_explicit* is = add_state(artificial_initial_state);
|
state_ta_explicit* is = add_state(artificial_initial_state);
|
||||||
assert(is == artificial_initial_state);
|
assert(is == artificial_initial_state);
|
||||||
|
(void)is;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ namespace spot
|
||||||
// unique artificial_livelock_acc_state
|
// unique artificial_livelock_acc_state
|
||||||
assert(artificial_livelock_acc_state_added
|
assert(artificial_livelock_acc_state_added
|
||||||
== artificial_livelock_acc_state);
|
== artificial_livelock_acc_state);
|
||||||
|
(void)artificial_livelock_acc_state_added;
|
||||||
artificial_livelock_acc_state->set_livelock_accepting_state(true);
|
artificial_livelock_acc_state->set_livelock_accepting_state(true);
|
||||||
artificial_livelock_acc_state->free_transitions();
|
artificial_livelock_acc_state->free_transitions();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ namespace spot
|
||||||
unsigned ns = out_->new_state();
|
unsigned ns = out_->new_state();
|
||||||
assert(ns == static_cast<unsigned>(n) - 1);
|
assert(ns == static_cast<unsigned>(n) - 1);
|
||||||
(void)ns;
|
(void)ns;
|
||||||
|
(void)n;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void
|
virtual void
|
||||||
|
|
|
||||||
|
|
@ -398,6 +398,7 @@ namespace spot
|
||||||
// No acceptance here to preserve the state-based property.
|
// No acceptance here to preserve the state-based property.
|
||||||
i = a->new_transition(tmp, dst, one, 0U);
|
i = a->new_transition(tmp, dst, one, 0U);
|
||||||
assert(i > num_transitions);
|
assert(i > num_transitions);
|
||||||
|
(void)i;
|
||||||
all -= one;
|
all -= one;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue