Fix several warnings reported by clang++ 3.2.

* src/tgba/tgbakvcomplement.cc
(tgba_kv_complement_succ_iterator::current_state_),
src/ta/taexplicit.hh (state_ta_explicit::source_):
Remove useless private member.
* src/ta/taexplicit.cc: Adjust constructors.
* src/ta/tgta.cc, src/ta/taexplicit.hh: Also fix
copyright banner.
* src/bin/ltlcross.cc (exec_with_timeout): Work
around warning about status not being set in the
error path.
This commit is contained in:
Alexandre Duret-Lutz 2013-01-16 08:52:27 +01:00
parent 361f594655
commit aa7b43eadf
5 changed files with 19 additions and 20 deletions

View file

@ -1,6 +1,6 @@
// -*- coding: utf-8 -*- // -*- coding: utf-8 -*-
// Copyright (C) 2012 Laboratoire de Recherche et Développement de // Copyright (C) 2012, 2013 Laboratoire de Recherche et Développement
// l'Epita (LRDE). // de l'Epita (LRDE).
// //
// This file is part of Spot, a model checking library. // This file is part of Spot, a model checking library.
// //
@ -393,6 +393,8 @@ exec_with_timeout(const char* cmd)
setpgid(0, 0); setpgid(0, 0);
execlp("sh", "sh", "-c", cmd, (char*)0); execlp("sh", "sh", "-c", cmd, (char*)0);
error(2, errno, "failed to run 'sh'"); error(2, errno, "failed to run 'sh'");
// never reached
return -1;
} }
else else
{ {

View file

@ -1,5 +1,5 @@
// -*- coding: utf-8 -*- // -*- coding: utf-8 -*-
// Copyright (C) 2010, 2011, 2012 Laboratoire de Recherche et // Copyright (C) 2010, 2011, 2012, 2013 Laboratoire de Recherche et
// Développement de l'Epita (LRDE). // 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.
@ -43,15 +43,13 @@ namespace spot
// ta_explicit_succ_iterator // ta_explicit_succ_iterator
ta_explicit_succ_iterator::ta_explicit_succ_iterator( ta_explicit_succ_iterator::ta_explicit_succ_iterator(
const state_ta_explicit* s) : const state_ta_explicit* s)
source_(s)
{ {
transitions_ = s->get_transitions(); transitions_ = s->get_transitions();
} }
ta_explicit_succ_iterator::ta_explicit_succ_iterator( ta_explicit_succ_iterator::ta_explicit_succ_iterator(
const state_ta_explicit* s, bdd condition) : const state_ta_explicit* s, bdd condition)
source_(s)
{ {
transitions_ = s->get_transitions(condition); transitions_ = s->get_transitions(condition);
} }

View file

@ -1,5 +1,6 @@
// Copyright (C) 2010, 2011, 2012 Laboratoire de Recherche et // -*- coding: utf-8 -*-
// Developpement de l Epita_explicit (LRDE). // Copyright (C) 2010, 2011, 2012, 2013 Laboratoire de 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.
// //
@ -9,9 +10,9 @@
// (at your option) any later version. // (at your option) any later version.
// //
// Spot is distributed in the hope that it will be useful, but WITHOUT // Spot is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANta_explicitBILITY // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
// License for more deta_explicitils. // License for more details.
// //
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
@ -265,7 +266,6 @@ namespace spot
private: private:
state_ta_explicit::transitions* transitions_; state_ta_explicit::transitions* transitions_;
state_ta_explicit::transitions::const_iterator i_; state_ta_explicit::transitions::const_iterator i_;
const state_ta_explicit* source_;
}; };
} }

View file

@ -1,5 +1,6 @@
// Copyright (C) 2012 Laboratoire de Recherche et Developpement // -*- coding: utf-8 -*-
// de l Epita_explicit (LRDE). // Copyright (C) 2012, 2013 Laboratoire de 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.
// //
@ -9,7 +10,7 @@
// (at your option) any later version. // (at your option) any later version.
// //
// Spot is distributed in the hope that it will be useful, but WITHOUT // Spot is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANta_explicitBILITY // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
// License for more deta_explicitils. // License for more deta_explicitils.
// //
@ -29,5 +30,3 @@ namespace spot
} }

View file

@ -1,5 +1,6 @@
// Copyright (C) 2009, 2010, 2011 Laboratoire de Recherche et Développement // -*- coding: utf-8 -*-
// de l'Epita (LRDE). // Copyright (C) 2009, 2010, 2011, 2013 Laboratoire de 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.
// //
@ -278,7 +279,6 @@ namespace spot
bdd the_acceptance_cond_; bdd the_acceptance_cond_;
const acc_list_t& acc_list_; const acc_list_t& acc_list_;
const state_kv_complement* origin_; const state_kv_complement* origin_;
const state_kv_complement* current_state_;
bdd_list_t condition_list_; bdd_list_t condition_list_;
bdd_list_t::const_iterator current_condition_; bdd_list_t::const_iterator current_condition_;
state_rank_map highest_current_ranks_; state_rank_map highest_current_ranks_;