tests: work around to compiler warnings
* tests/core/cube.cc, tests/core/twagraph.cc: Fix warning about unused variable in absence of assert().
This commit is contained in:
parent
644342f5d4
commit
ee83e8e4c2
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
// -*- coding: utf-8 -*-
|
// -*- coding: utf-8 -*-
|
||||||
// Copyright (C) 2015, 2016, 2018, 2020 Laboratoire de Recherche et
|
// Copyright (C) 2015-2016, 2018, 2020-2021 Laboratoire de Recherche et
|
||||||
// Développement de l'Epita.
|
// Développement de l'Epita.
|
||||||
//
|
//
|
||||||
// This file is part of Spot, a model checking library.
|
// This file is part of Spot, a model checking library.
|
||||||
|
|
@ -100,7 +100,7 @@ static void test_bdd_to_cube()
|
||||||
|
|
||||||
// The BDD to convert
|
// The BDD to convert
|
||||||
bdd x;
|
bdd x;
|
||||||
bool result;
|
int result;
|
||||||
|
|
||||||
// Test bddtrue
|
// Test bddtrue
|
||||||
x = bddtrue;
|
x = bddtrue;
|
||||||
|
|
@ -123,6 +123,8 @@ static void test_bdd_to_cube()
|
||||||
result = test_translation(x, cubeset, binder, reverse_binder, aps);
|
result = test_translation(x, cubeset, binder, reverse_binder, aps);
|
||||||
assert(result);
|
assert(result);
|
||||||
|
|
||||||
|
(void)result;
|
||||||
|
|
||||||
// Free all variables
|
// Free all variables
|
||||||
d->unregister_variable(idx_e, d);
|
d->unregister_variable(idx_e, d);
|
||||||
d->unregister_variable(idx_d, d);
|
d->unregister_variable(idx_d, d);
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,7 @@ static void f6()
|
||||||
|
|
||||||
unsigned out = tg->merge_states_of();
|
unsigned out = tg->merge_states_of();
|
||||||
assert(out == 3);
|
assert(out == 3);
|
||||||
|
(void) out;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compare merge_states() and merge_states_of()
|
// Compare merge_states() and merge_states_of()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue