Package: libgdf / 0.1.3-11.1

disable-werror.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 <[email protected]>
Bug-Debian: https://bugs.debian.org/853492
Forwarded: not-needed
Reviewed-By: Rafael Laboissiere <[email protected]>
Last-Update: 2019-08-16

--- libgdf-0.1.2.orig/libgdf/CMakeLists.txt
    libgdf-0.1.2/libgdf/CMakeLists.txt
@@ -2,9  2,9 @@ cmake_minimum_required( VERSION 2.8 )
 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 )
         add_definitions( -Wall -Wextra -pedantic )
 elseif( WIN32 )
         add_definitions( -W3 )
         # Default Windows installs go to "C:\Program files" which may fail
--- libgdf-0.1.2.orig/test/CMakeLists.txt
    libgdf-0.1.2/test/CMakeLists.txt
@@ -2,9  2,9 @@ cmake_minimum_required( VERSION 2.8 )
 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 )
 	add_definitions( -Wall -Wextra -pedantic )
 elseif( WIN32 )
 	add_definitions( -W3 )
 endif( UNIX )
--- libgdf-0.1.2.orig/tools/gdf_merger/CMakeLists.txt
    libgdf-0.1.2/tools/gdf_merger/CMakeLists.txt
@@ -2,9  2,9 @@ cmake_minimum_required( VERSION 2.8 )
 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 )
 	add_definitions( -Wall -Wextra -pedantic )
 elseif( WIN32 )
 	add_definitions( -W3 )
 endif( UNIX )