File: 0004-build-Disable-error-on-warning.patch

package info (click to toggle)
iotjs 1.0%2B715-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 36,416 kB
  • sloc: ansic: 241,611; javascript: 58,534; python: 8,269; sh: 7,889; cpp: 2,526; makefile: 1,744; perl: 1,554; tcl: 862; xml: 464; asm: 97
file content (40 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | 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
From: Philippe Coval <rzr@users.sf.net>
Date: Tue, 28 Jul 2020 16:48:29 +0200
Subject: build: Disable error on warning

Change-Id: I73ba63d6897a5f25e8adaa89216788ad0b23a548
Bug: https://github.com/jerryscript-project/iotjs/issues/1945
Forwarded: no
Gbp-Pq: Name 0004-build-Disable-error-on-warning.patch
Last-Update: 2020-10-16
Signed-off-by: Philippe Coval <rzr@users.sf.net>
---
 cmake/iotjs.cmake         | 2 +-
 deps/jerry/CMakeLists.txt | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmake/iotjs.cmake b/cmake/iotjs.cmake
index 14f2249..ee781df 100644
--- a/cmake/iotjs.cmake
+++ b/cmake/iotjs.cmake
@@ -351,7 +351,7 @@ endforeach()
 # Common compile flags
 iotjs_add_compile_flags(-Wall)
 if(NOT USING_MSVC)
-  iotjs_add_compile_flags(-Wextra -Werror -Wno-unused-parameter)
+  iotjs_add_compile_flags(-Wextra -Wno-unused-parameter)
   iotjs_add_compile_flags(-Wsign-conversion -std=gnu99)
 endif()
 
diff --git a/deps/jerry/CMakeLists.txt b/deps/jerry/CMakeLists.txt
index d19d976..073f56e 100644
--- a/deps/jerry/CMakeLists.txt
+++ b/deps/jerry/CMakeLists.txt
@@ -150,7 +150,6 @@ endmacro()
 macro(jerry_add_compile_warnings)
   foreach(_warning ${ARGV})
     jerry_add_compile_flags(-W${_warning})
-    jerry_add_compile_flags(-Werror=${_warning})
   endforeach()
 endmacro()