gcc-snapshot warnings

* spot/kripke/kripkegraph.hh, spot/priv/bddalloc.hh,
spot/priv/freelist.hh, spot/priv/satcommon.hh, spot/ta/taexplicit.cc
spot/twa/bdddict.cc, spot/twa/twagraph.hh,
spot/twaalgos/alternation.hh, spot/twaalgos/dtwasat.cc,
spot/twaalgos/ltl2taa.cc, spot/twaalgos/stutter.cc,
tests/core/ngraph.cc: Add default constructors, copy constructors, or
remove useless destructors.
This commit is contained in:
Alexandre Duret-Lutz 2018-08-10 16:22:57 +02:00
parent d147ad2510
commit 389ef16b1b
12 changed files with 89 additions and 21 deletions

View file

@ -1,5 +1,5 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2013, 2016 Laboratoire de Recherche et Développement
// Copyright (C) 2013, 2016, 2018 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
@ -35,6 +35,19 @@ namespace spot
public:
/// Default constructor.
bdd_allocator();
bdd_allocator(const bdd_allocator& other)
: free_list(other), lvarnum(other.lvarnum)
{
}
bdd_allocator& operator=(const bdd_allocator& other)
{
free_list::operator=(other);
lvarnum = other.lvarnum;
return *this;
}
/// Initialize the BDD library.
static void initialize();
/// Allocate \a n BDD variables.

View file

@ -1,6 +1,6 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2008,2013 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// Copyright (C) 2008,2013,2018 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
// Copyright (C) 2004, 2006 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
@ -36,6 +36,21 @@ namespace spot
public:
virtual ~free_list();
free_list()
{
}
free_list(const free_list& other)
: fl(other.fl)
{
}
free_list& operator=(const free_list& other)
{
fl = other.fl;
return *this;
}
/// \brief Find \a n consecutive integers.
///
/// Browse the list of free integers until \a n consecutive

View file

@ -106,10 +106,6 @@ public:
#endif
}
~vars_helper()
{
}
/// \brief Save all different sizes and precompute some values.
void
init(unsigned size_src, unsigned size_cond, unsigned size_dst,