diff options
author | Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> | 2022-06-16 22:22:29 +0200 |
---|---|---|
committer | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2022-09-12 13:21:12 +0200 |
commit | ddc22439b2e1c46359c733e73e3d6552d1b2d04a (patch) | |
tree | 1fb5c8d197c64ad0e5f20646a02999e744f23b0d | |
parent | c8a5e11ebcbbf4b5cf04a3eca4df75f09134cb87 (diff) |
[PATCH] fuzzylite/src/main.cpp: support building with gcc-12
* std::set_unexpected() is removed in c++17
* We build with -Wall -Wextra -Werror and with gcc-12, using
std::set_unexpected will trigger the warning due to
-Werror=deprecated-declarations which in turn is treated as an error and
makes the build fail.
Gbp-Pq: Name 0001-fuzzylite-src-main.cpp-support-building-with-gcc-12.patch
-rw-r--r-- | fuzzylite/src/main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fuzzylite/src/main.cpp b/fuzzylite/src/main.cpp index 06ca139..4465fbb 100644 --- a/fuzzylite/src/main.cpp +++ b/fuzzylite/src/main.cpp @@ -21,7 +21,6 @@ int main(int argc, const char* argv[]) { std::set_terminate(fl::Exception::terminate); - std::set_unexpected(fl::Exception::terminate); ::signal(SIGSEGV, fl::Exception::signalHandler); ::signal(SIGABRT, fl::Exception::signalHandler); ::signal(SIGILL, fl::Exception::signalHandler); |