Bug#853492: libgdf: ftbfs with GCC-7

2017-12-17 Thread Yaroslav Halchenko
Thanks!

On Mon, 18 Dec 2017, Juhani Numminen wrote:

> Control: tags -1 + patch

> This patch removes -Werror to resolve this FTBFS. Removing the deprecated
> exception specifications is another option but I didn't feel like editing
> the public headers of the library.
-- 
Yaroslav O. Halchenko
Center for Open Neuroscience http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834   Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik



Bug#853492: libgdf: ftbfs with GCC-7

2017-12-17 Thread Juhani Numminen
Control: tags -1 + patch

This patch removes -Werror to resolve this FTBFS. Removing the deprecated
exception specifications is another option but I didn't feel like editing
the public headers of the library.


--
Juhani
Description: Remove -Werror to fix FTBFS with GCC-7
 Modifying build flags avoids having to edit public library headers.
 GCC-7 gives the following error:
 dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Werror=deprecated]
Author: Juhani Numminen 
Bug-Debian: https://bugs.debian.org/853492
Last-Update: 2017-12-17

--- a/libgdf/CMakeLists.txt
+++ b/libgdf/CMakeLists.txt
@@ -2,7 +2,7 @@
 project( GDF )
 
 if( UNIX )
-add_definitions( -Wall -Wextra -pedantic -Werror -fPIC )
+add_definitions( -Wall -Wextra -pedantic -fPIC )
 elseif( MINGW )
 add_definitions( -Wall -Wextra -pedantic -Werror )
 elseif( WIN32 )
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -2,7 +2,7 @@
 project( gdf_tests )
 
 if( UNIX )
-	add_definitions( -Wall -Wextra -pedantic -Werror -fPIC)
+	add_definitions( -Wall -Wextra -pedantic -fPIC)
 elseif( MINGW )
 	add_definitions( -Wall -Wextra -pedantic -Werror )
 elseif( WIN32 )
--- a/tools/gdf_merger/CMakeLists.txt
+++ b/tools/gdf_merger/CMakeLists.txt
@@ -2,7 +2,7 @@
 project( gdf_merger )
 
 if( UNIX )
-	add_definitions( -Wall -Wextra -pedantic -Werror -fPIC)
+	add_definitions( -Wall -Wextra -pedantic -fPIC)
 elseif( MINGW )
 	add_definitions( -Wall -Wextra -pedantic -Werror )
 elseif( WIN32 )