1 From 67924a43d52862a7b4c9076d49071449313fea85 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Thu, 22 Sep 2016 22:59:11 +0200
4 Subject: [PATCH] Disable Werror everywhere
6 With gcc-5.1, some constructs that were previously accepted (but wrong)
7 are now considered warnings, and thus -Werror makes them errors.
9 Ditch -Werror altoghether.
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
13 [Rebased for rpi-userland-a1b89e91f393c7134b4cdc36431f863bb3333163]
14 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
16 host_applications/android/apps/vidtex/CMakeLists.txt | 2 +-
17 host_applications/linux/apps/gencmd/CMakeLists.txt | 2 +-
18 host_applications/linux/apps/raspicam/CMakeLists.txt | 2 +-
19 host_applications/linux/apps/smem/CMakeLists.txt | 2 +-
20 host_applications/linux/libs/bcm_host/CMakeLists.txt | 2 +-
21 host_applications/linux/libs/sm/CMakeLists.txt | 2 +-
22 interface/mmal/CMakeLists.txt | 2 +-
23 interface/vcos/CMakeLists.txt | 2 +-
24 interface/vcos/pthreads/CMakeLists.txt | 2 +-
25 interface/vmcs_host/CMakeLists.txt | 2 +-
26 interface/vmcs_host/linux/vcfiled/CMakeLists.txt | 2 +-
27 11 files changed, 11 insertions(+), 11 deletions(-)
29 diff --git a/host_applications/android/apps/vidtex/CMakeLists.txt b/host_applications/android/apps/vidtex/CMakeLists.txt
30 index 1f705ef..37d037d 100644
31 --- a/host_applications/android/apps/vidtex/CMakeLists.txt
32 +++ b/host_applications/android/apps/vidtex/CMakeLists.txt
34 cmake_minimum_required(VERSION 2.8)
36 -SET(COMPILE_DEFINITIONS -Werror -Wall)
37 +SET(COMPILE_DEFINITIONS -Wall)
38 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/libs/bcm_host/include)
41 diff --git a/host_applications/linux/apps/gencmd/CMakeLists.txt b/host_applications/linux/apps/gencmd/CMakeLists.txt
42 index f95d1a1..034bf20 100644
43 --- a/host_applications/linux/apps/gencmd/CMakeLists.txt
44 +++ b/host_applications/linux/apps/gencmd/CMakeLists.txt
45 @@ -4,7 +4,7 @@ if (WIN32)
46 set(VCOS_PLATFORM win32)
48 set(VCOS_PLATFORM pthreads)
49 - add_definitions(-Wall -Werror)
50 + add_definitions(-Wall )
53 include_directories( ../../../..
54 diff --git a/host_applications/linux/apps/raspicam/CMakeLists.txt b/host_applications/linux/apps/raspicam/CMakeLists.txt
55 index 2afc145..04e446f 100644
56 --- a/host_applications/linux/apps/raspicam/CMakeLists.txt
57 +++ b/host_applications/linux/apps/raspicam/CMakeLists.txt
60 # raspistill/raspivid/raspiyuv
62 -SET(COMPILE_DEFINITIONS -Werror)
63 +SET(COMPILE_DEFINITIONS )
65 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/libs/bcm_host/include)
66 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/apps/raspicam/)
67 diff --git a/host_applications/linux/apps/smem/CMakeLists.txt b/host_applications/linux/apps/smem/CMakeLists.txt
68 index 0fa8328..f0d1e77 100644
69 --- a/host_applications/linux/apps/smem/CMakeLists.txt
70 +++ b/host_applications/linux/apps/smem/CMakeLists.txt
71 @@ -4,7 +4,7 @@ get_filename_component (VIDEOCORE_ROOT ../../../.. ABSOLUTE)
72 include (${VIDEOCORE_ROOT}/makefiles/cmake/global_settings.cmake)
75 - add_definitions(-Wall -Werror)
76 + add_definitions(-Wall )
80 diff --git a/host_applications/linux/libs/bcm_host/CMakeLists.txt b/host_applications/linux/libs/bcm_host/CMakeLists.txt
81 index 1f29ead..fb78cea 100644
82 --- a/host_applications/linux/libs/bcm_host/CMakeLists.txt
83 +++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt
84 @@ -3,7 +3,7 @@ if (WIN32)
85 set(VCOS_PLATFORM win32)
87 set(VCOS_PLATFORM pthreads)
88 - add_definitions(-Wall -Werror)
89 + add_definitions(-Wall )
92 include_directories( ../../../..
93 diff --git a/host_applications/linux/libs/sm/CMakeLists.txt b/host_applications/linux/libs/sm/CMakeLists.txt
94 index c6bf764..4bca0b0 100644
95 --- a/host_applications/linux/libs/sm/CMakeLists.txt
96 +++ b/host_applications/linux/libs/sm/CMakeLists.txt
97 @@ -3,7 +3,7 @@ if (WIN32)
98 set(VCOS_PLATFORM win32)
100 set(VCOS_PLATFORM pthreads)
101 - add_definitions(-Wall -Werror)
102 + add_definitions(-Wall )
105 include_directories( ../../../..
106 diff --git a/interface/mmal/CMakeLists.txt b/interface/mmal/CMakeLists.txt
107 index 37ae757..78b24a9 100644
108 --- a/interface/mmal/CMakeLists.txt
109 +++ b/interface/mmal/CMakeLists.txt
110 @@ -3,7 +3,7 @@ if (NOT DEFINED LIBRARY_TYPE)
111 set(LIBRARY_TYPE SHARED)
112 endif (NOT DEFINED LIBRARY_TYPE)
114 -add_definitions(-Wall -Werror)
115 +add_definitions(-Wall )
117 add_library(mmal SHARED util/mmal_util.c)
119 diff --git a/interface/vcos/CMakeLists.txt b/interface/vcos/CMakeLists.txt
120 index 23a8d72..988b104 100644
121 --- a/interface/vcos/CMakeLists.txt
122 +++ b/interface/vcos/CMakeLists.txt
123 @@ -43,7 +43,7 @@ foreach (header ${HEADERS})
126 if (CMAKE_COMPILER_IS_GNUCC)
127 - add_definitions (-ggdb -Werror -Wall)
128 + add_definitions (-ggdb -Wall)
131 if (CMAKE_COMPILER_2005)
132 diff --git a/interface/vcos/pthreads/CMakeLists.txt b/interface/vcos/pthreads/CMakeLists.txt
133 index 1d81ca3..b35cd8e 100644
134 --- a/interface/vcos/pthreads/CMakeLists.txt
135 +++ b/interface/vcos/pthreads/CMakeLists.txt
137 # MSVC5 does not fully support C99, enabling declaration-after-statement
138 # warnings allows a common MSVC5 build error to be detected in Linux builds.
139 if (CMAKE_COMPILER_IS_GNUCC)
140 - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wdeclaration-after-statement")
141 + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wdeclaration-after-statement")
142 add_definitions (-D_GNU_SOURCE)
145 diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt
146 index 0b3adc9..c5156d8 100755
147 --- a/interface/vmcs_host/CMakeLists.txt
148 +++ b/interface/vmcs_host/CMakeLists.txt
150 # interface/vmcs_host
152 # not working in release build
153 -# add_definitions(-Werror)
156 # vc_vchi_gencmd.c has a type-punning problem in vc_gencmd_read_response
157 add_definitions(-fno-strict-aliasing)
158 diff --git a/interface/vmcs_host/linux/vcfiled/CMakeLists.txt b/interface/vmcs_host/linux/vcfiled/CMakeLists.txt
159 index aed0e83..d834b3f 100644
160 --- a/interface/vmcs_host/linux/vcfiled/CMakeLists.txt
161 +++ b/interface/vmcs_host/linux/vcfiled/CMakeLists.txt
164 -add_definitions(-Werror)
167 # vcfiled - serves files to videocore. used for media handlers from
168 # OpenMAX/IL and loading VLLs.