C++20: fix warnings reported by g++ 10.1
* spot/tl/formula.hh (formula::operator bool): Mark as noexcept. * bin/common_trans.hh, bin/common_trans.cc: Use std::atomic instead of volatile.
This commit is contained in:
parent
a7ff5b4eed
commit
368acaad28
3 changed files with 8 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2015-2018 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
// Copyright (C) 2015-2018, 2020 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "common_sys.hh"
|
||||
#include <vector>
|
||||
#include <atomic>
|
||||
#include <argp.h>
|
||||
|
||||
#include <spot/misc/formater.hh>
|
||||
|
|
@ -165,7 +166,7 @@ public:
|
|||
# define ENABLE_TIMEOUT 0
|
||||
#endif
|
||||
|
||||
extern volatile bool timed_out;
|
||||
extern std::atomic<bool> timed_out;
|
||||
extern unsigned timeout_count;
|
||||
#if ENABLE_TIMEOUT
|
||||
void setup_sig_handler();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue