summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2022-06-16 22:22:29 +0200
committerJohannes Schauer Marin Rodrigues <josch@debian.org>2022-09-12 10:23:13 +0200
commitab82bdab6d5742c9fd9bf9b7af460d4b8594d33a (patch)
treef4c5393e4d3dc5ff468e5f13025ec2924be6cc4f
parent3469db81f07262d2d78bbbc28ea57f80eadb329d (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.cpp1
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);