From 685297cf5d50c44921113eaccae01aba49e185ba Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Tue, 20 Nov 2018 17:51:00 +0100
Subject: [PATCH] Fixed tests for C++11 library

---
 configure    | 18 +++++++++---------
 configure.ac | 18 +++++++++---------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/configure b/configure
index 81c70fe40..ad51997a1 100755
--- a/configure
+++ b/configure
@@ -5245,16 +5245,16 @@ void func(void) {
   } catch(std::bad_array_new_length &) {
   } catch(std::bad_function_call &) {
   } catch(std::bad_weak_ptr &) {
-  } catch(std::system_error &e) {
-    if(e.code().category()==std::generic_category()) void;
-    else if(e.code().category()==std::system_category()) void;
-    else if(e.code().category()==std::iostream_category()) void;
-    else if(e.code().category()==std::future_category()) void;
   } catch(std::ios_base::failure &e) {
-    if(e.code().category()==std::generic_category()) void;
-    else if(e.code().category()==std::system_category()) void;
-    else if(e.code().category()==std::iostream_category()) void;
-    else if(e.code().category()==std::future_category()) void;
+    if(e.code().category()==std::generic_category()) {}
+    else if(e.code().category()==std::system_category()) {}
+    else if(e.code().category()==std::iostream_category()) {}
+    else if(e.code().category()==std::future_category()) {}
+  } catch(std::system_error &e) {
+    if(e.code().category()==std::generic_category()) {}
+    else if(e.code().category()==std::system_category()) {}
+    else if(e.code().category()==std::iostream_category()) {}
+    else if(e.code().category()==std::future_category()) {}
   }
 // capable to throw:
   auto a=std::bad_array_new_length();
diff --git a/configure.ac b/configure.ac
index b035962fe..aaa860a43 100644
--- a/configure.ac
+++ b/configure.ac
@@ -403,16 +403,16 @@ void func(void) {
   } catch(std::bad_array_new_length &) {
   } catch(std::bad_function_call &) {
   } catch(std::bad_weak_ptr &) {
-  } catch(std::system_error &e) {
-    if(e.code().category()==std::generic_category()) void;
-    else if(e.code().category()==std::system_category()) void;
-    else if(e.code().category()==std::iostream_category()) void;
-    else if(e.code().category()==std::future_category()) void;
   } catch(std::ios_base::failure &e) {
-    if(e.code().category()==std::generic_category()) void;
-    else if(e.code().category()==std::system_category()) void;
-    else if(e.code().category()==std::iostream_category()) void;
-    else if(e.code().category()==std::future_category()) void;
+    if(e.code().category()==std::generic_category()) {}
+    else if(e.code().category()==std::system_category()) {}
+    else if(e.code().category()==std::iostream_category()) {}
+    else if(e.code().category()==std::future_category()) {}
+  } catch(std::system_error &e) {
+    if(e.code().category()==std::generic_category()) {}
+    else if(e.code().category()==std::system_category()) {}
+    else if(e.code().category()==std::iostream_category()) {}
+    else if(e.code().category()==std::future_category()) {}
   }
 // capable to throw:
   auto a=std::bad_array_new_length();
-- 
GitLab