File: build-flags.patch

package info (click to toggle)
gnucash 1%3A5.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 119,584 kB
  • sloc: ansic: 144,394; cpp: 142,256; lisp: 47,095; javascript: 37,985; python: 5,225; xml: 4,963; perl: 282; sh: 151; makefile: 56
file content (20 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Last-Update: 2019-11-04
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: remove "-Werror" to avoid FTBFS issues due to deprecations when gcc is updated.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -629,10 +629,10 @@
 set(CMAKE_C_STANDARD_REQUIRED ON)
 set(CMAKE_C_EXTENSIONS ON)
 
 if (UNIX)
-  set( CMAKE_C_FLAGS "-Werror -Wall -Wmissing-prototypes -Wmissing-declarations ${CMAKE_C_FLAGS}")
-  set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations ${CMAKE_CXX_FLAGS}")
+  set( CMAKE_C_FLAGS "        -Wall -Wmissing-prototypes -Wmissing-declarations ${CMAKE_C_FLAGS}")
+  set( CMAKE_CXX_FLAGS "        -Wall -Wmissing-declarations ${CMAKE_CXX_FLAGS}")
   set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
 endif()
 if (MINGW)
   set( CMAKE_C_FLAGS "-Werror -Wall -Wmissing-prototypes -Wmissing-declarations ${CMAKE_C_FLAGS}")