scancpan: fix detection of native module
[buildroot-gz.git] / package / rpi-userland / 0004-no-Werror.patch
blob18a23b3039b85ab26d024d3c31998dc53e4e5e2e
1 Disable Werror everywhere
3 With gcc-5.1, some constructs that were previously accepted (but wrong)
4 are now considered warnings, and thus -Werror makes them errors.
6 Ditch -Werror altoghether.
8 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/android/apps/vidtex/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/android/apps/vidtex/CMakeLists.txt
11 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/android/apps/vidtex/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
12 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/android/apps/vidtex/CMakeLists.txt 2015-07-12 16:53:29.528491231 +0200
13 @@ -1,6 +1,6 @@
14 cmake_minimum_required(VERSION 2.8)
16 -SET(COMPILE_DEFINITIONS -Werror -Wall)
17 +SET(COMPILE_DEFINITIONS -Wall)
18 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/libs/bcm_host/include)
20 set (VIDTEX_SOURCES
21 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/apps/gencmd/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/apps/gencmd/CMakeLists.txt
22 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/apps/gencmd/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
23 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/apps/gencmd/CMakeLists.txt 2015-07-12 16:53:29.512491038 +0200
24 @@ -4,7 +4,7 @@
25 set(VCOS_PLATFORM win32)
26 else ()
27 set(VCOS_PLATFORM pthreads)
28 - add_definitions(-Wall -Werror)
29 + add_definitions(-Wall )
30 endif ()
32 include_directories( ../../../..
33 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/apps/raspicam/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/apps/raspicam/CMakeLists.txt
34 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/apps/raspicam/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
35 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/apps/raspicam/CMakeLists.txt 2015-07-12 16:50:54.422624640 +0200
36 @@ -1,7 +1,7 @@
38 # raspistill/raspivid/raspiyuv
40 -SET(COMPILE_DEFINITIONS -Werror)
41 +SET(COMPILE_DEFINITIONS )
43 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/libs/bcm_host/include)
44 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/apps/raspicam/)
45 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/apps/smem/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/apps/smem/CMakeLists.txt
46 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/apps/smem/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
47 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/apps/smem/CMakeLists.txt 2015-07-12 16:53:29.516491086 +0200
48 @@ -4,7 +4,7 @@
49 include (${VIDEOCORE_ROOT}/makefiles/cmake/global_settings.cmake)
51 if (NOT WIN32)
52 - add_definitions(-Wall -Werror)
53 + add_definitions(-Wall )
54 endif ()
56 include_directories (
57 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/libs/bcm_host/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/libs/bcm_host/CMakeLists.txt
58 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/libs/bcm_host/CMakeLists.txt 2015-07-12 16:48:03.768570937 +0200
59 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/libs/bcm_host/CMakeLists.txt 2015-07-12 16:53:29.520491135 +0200
60 @@ -3,7 +3,7 @@
61 set(VCOS_PLATFORM win32)
62 else ()
63 set(VCOS_PLATFORM pthreads)
64 - add_definitions(-Wall -Werror)
65 + add_definitions(-Wall )
66 endif ()
68 include_directories( ../../../..
69 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/libs/sm/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/libs/sm/CMakeLists.txt
70 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/host_applications/linux/libs/sm/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
71 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/host_applications/linux/libs/sm/CMakeLists.txt 2015-07-12 16:53:29.524491183 +0200
72 @@ -3,7 +3,7 @@
73 set(VCOS_PLATFORM win32)
74 else ()
75 set(VCOS_PLATFORM pthreads)
76 - add_definitions(-Wall -Werror)
77 + add_definitions(-Wall )
78 endif ()
80 include_directories( ../../../..
81 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/mmal/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/mmal/CMakeLists.txt
82 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/mmal/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
83 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/mmal/CMakeLists.txt 2015-07-12 16:53:29.536491327 +0200
84 @@ -3,7 +3,7 @@
85 set(LIBRARY_TYPE SHARED)
86 endif (NOT DEFINED LIBRARY_TYPE)
88 -add_definitions(-Wall -Werror)
89 +add_definitions(-Wall )
91 add_library(mmal SHARED util/mmal_util.c)
93 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vcos/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vcos/CMakeLists.txt
94 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vcos/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
95 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vcos/CMakeLists.txt 2015-07-12 16:53:29.540491375 +0200
96 @@ -43,7 +43,7 @@
97 endforeach ()
99 if (CMAKE_COMPILER_IS_GNUCC)
100 - add_definitions (-ggdb -Werror -Wall)
101 + add_definitions (-ggdb -Wall)
102 endif ()
104 if (CMAKE_COMPILER_2005)
105 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vcos/pthreads/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vcos/pthreads/CMakeLists.txt
106 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vcos/pthreads/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
107 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vcos/pthreads/CMakeLists.txt 2015-07-12 16:53:29.540491375 +0200
108 @@ -1,7 +1,7 @@
109 # MSVC5 does not fully support C99, enabling declaration-after-statement
110 # warnings allows a common MSVC5 build error to be detected in Linux builds.
111 if (CMAKE_COMPILER_IS_GNUCC)
112 - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wdeclaration-after-statement")
113 + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wdeclaration-after-statement")
114 add_definitions (-D_GNU_SOURCE)
115 endif ()
117 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vmcs_host/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vmcs_host/CMakeLists.txt
118 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vmcs_host/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
119 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vmcs_host/CMakeLists.txt 2015-07-12 16:53:29.528491231 +0200
120 @@ -2,7 +2,7 @@
121 # interface/vmcs_host
123 # not working in release build
124 -# add_definitions(-Werror)
125 +# add_definitions()
127 # vc_vchi_gencmd.c has a type-punning problem in vc_gencmd_read_response
128 add_definitions(-fno-strict-aliasing)
129 diff -durN rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vmcs_host/linux/vcfiled/CMakeLists.txt rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vmcs_host/linux/vcfiled/CMakeLists.txt
130 --- rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990.orig/interface/vmcs_host/linux/vcfiled/CMakeLists.txt 2015-05-30 15:53:53.000000000 +0200
131 +++ rpi-userland-b834074d0c0d9d7e64c133ab14ed691999cee990/interface/vmcs_host/linux/vcfiled/CMakeLists.txt 2015-07-12 16:53:29.532491279 +0200
132 @@ -1,5 +1,5 @@
134 -add_definitions(-Werror)
135 +add_definitions()
137 # vcfiled - serves files to videocore. used for media handlers from
138 # OpenMAX/IL and loading VLLs.