Fix a GCC 4.6 warning.

* src/tgbatest/randtgba.cc (main): Remove the set but unused opt_A
variable (the upcoming GCC 4.6 would warn about it) and set opt_ec
to 1 if -A is used without -e.
This commit is contained in:
Alexandre Duret-Lutz 2010-11-30 12:19:45 +01:00
parent 3b3711286b
commit ae03bc6704
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2010-11-30 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix a GCC 4.6 warning.
* src/tgbatest/randtgba.cc (main): Remove the set but unused opt_A
variable (the upcoming GCC 4.6 would warn about it) and set opt_ec
to 1 if -A is used without -e.
2010-11-27 Alexandre Duret-Lutz <adl@lrde.epita.fr> 2010-11-27 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/tgbatest/ltl2tgba.cc (syntax): Typo. * src/tgbatest/ltl2tgba.cc (syntax): Typo.

View file

@ -542,7 +542,6 @@ generate_formula(const spot::ltl::random_ltl& rl, int opt_f, int opt_s,
int int
main(int argc, char** argv) main(int argc, char** argv)
{ {
bool opt_A;
bool opt_paper = false; bool opt_paper = false;
bool opt_dp = false; bool opt_dp = false;
int opt_f = 15; int opt_f = 15;
@ -612,7 +611,8 @@ main(int argc, char** argv)
{ {
if (argc < argn + 2) if (argc < argn + 2)
syntax(argv[0]); syntax(argv[0]);
opt_A = true; if (!opt_ec)
opt_ec = 1;
std::istream* in; std::istream* in;
if (strcmp(argv[++argn], "-")) if (strcmp(argv[++argn], "-"))
{ {