1*4882a593SmuzhiyunFrom cc9ac86bcff79697d354cc51d3a984fd0f362868 Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: Peter Seiderer <ps.report@gmx.net> 3*4882a593SmuzhiyunDate: Thu, 22 Sep 2016 22:59:11 +0200 4*4882a593SmuzhiyunSubject: [PATCH] Disable Werror everywhere 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunWith gcc-5.1, some constructs that were previously accepted (but wrong) 7*4882a593Smuzhiyunare now considered warnings, and thus -Werror makes them errors. 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunDitch -Werror altoghether. 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunSigned-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun[Rebased for rpi-userland-a1b89e91f393c7134b4cdc36431f863bb3333163] 14*4882a593SmuzhiyunSigned-off-by: Peter Seiderer <ps.report@gmx.net> 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun[Rebased for rpi-userland-8f0abfb07b96e7ee85f46e59d895014ec5e25f5e] 17*4882a593SmuzhiyunSigned-off-by: Peter Seiderer <ps.report@gmx.net> 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun[Rebased for rpi-userland-5070cb7fc150fc98f1ed64a7739c3356970d9f76] 20*4882a593SmuzhiyunSigned-off-by: Peter Seiderer <ps.report@gmx.net> 21*4882a593Smuzhiyun--- 22*4882a593Smuzhiyun host_applications/android/apps/vidtex/CMakeLists.txt | 2 +- 23*4882a593Smuzhiyun host_applications/linux/apps/gencmd/CMakeLists.txt | 2 +- 24*4882a593Smuzhiyun host_applications/linux/apps/raspicam/CMakeLists.txt | 2 +- 25*4882a593Smuzhiyun host_applications/linux/apps/smem/CMakeLists.txt | 2 +- 26*4882a593Smuzhiyun host_applications/linux/libs/bcm_host/CMakeLists.txt | 2 +- 27*4882a593Smuzhiyun host_applications/linux/libs/sm/CMakeLists.txt | 2 +- 28*4882a593Smuzhiyun interface/mmal/CMakeLists.txt | 2 +- 29*4882a593Smuzhiyun interface/vcos/CMakeLists.txt | 2 +- 30*4882a593Smuzhiyun interface/vcos/pthreads/CMakeLists.txt | 2 +- 31*4882a593Smuzhiyun interface/vmcs_host/CMakeLists.txt | 2 +- 32*4882a593Smuzhiyun 10 files changed, 10 insertions(+), 10 deletions(-) 33*4882a593Smuzhiyun 34*4882a593Smuzhiyundiff --git a/host_applications/android/apps/vidtex/CMakeLists.txt b/host_applications/android/apps/vidtex/CMakeLists.txt 35*4882a593Smuzhiyunindex 6d66d69..06a3192 100644 36*4882a593Smuzhiyun--- a/host_applications/android/apps/vidtex/CMakeLists.txt 37*4882a593Smuzhiyun+++ b/host_applications/android/apps/vidtex/CMakeLists.txt 38*4882a593Smuzhiyun@@ -1,6 +1,6 @@ 39*4882a593Smuzhiyun cmake_minimum_required(VERSION 2.8) 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun-SET(COMPILE_DEFINITIONS -Werror -Wall) 42*4882a593Smuzhiyun+SET(COMPILE_DEFINITIONS -Wall) 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun # Set --no-as-needed to stop the linker discarding mmal_vc_client 45*4882a593Smuzhiyun # as it can't see that the constructor registers a load of functionality 46*4882a593Smuzhiyundiff --git a/host_applications/linux/apps/gencmd/CMakeLists.txt b/host_applications/linux/apps/gencmd/CMakeLists.txt 47*4882a593Smuzhiyunindex f95d1a1..034bf20 100644 48*4882a593Smuzhiyun--- a/host_applications/linux/apps/gencmd/CMakeLists.txt 49*4882a593Smuzhiyun+++ b/host_applications/linux/apps/gencmd/CMakeLists.txt 50*4882a593Smuzhiyun@@ -4,7 +4,7 @@ if (WIN32) 51*4882a593Smuzhiyun set(VCOS_PLATFORM win32) 52*4882a593Smuzhiyun else () 53*4882a593Smuzhiyun set(VCOS_PLATFORM pthreads) 54*4882a593Smuzhiyun- add_definitions(-Wall -Werror) 55*4882a593Smuzhiyun+ add_definitions(-Wall ) 56*4882a593Smuzhiyun endif () 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun include_directories( ../../../.. 59*4882a593Smuzhiyundiff --git a/host_applications/linux/apps/raspicam/CMakeLists.txt b/host_applications/linux/apps/raspicam/CMakeLists.txt 60*4882a593Smuzhiyunindex f7db21e..b94bdc3 100644 61*4882a593Smuzhiyun--- a/host_applications/linux/apps/raspicam/CMakeLists.txt 62*4882a593Smuzhiyun+++ b/host_applications/linux/apps/raspicam/CMakeLists.txt 63*4882a593Smuzhiyun@@ -1,7 +1,7 @@ 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun # raspistill/raspivid/raspiyuv 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun-SET(COMPILE_DEFINITIONS -Werror) 68*4882a593Smuzhiyun+SET(COMPILE_DEFINITIONS ) 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun # Set --no-as-needed to stop the linker discarding mmal_vc_client 71*4882a593Smuzhiyun # as it can't see that the constructor registers a load of functionality 72*4882a593Smuzhiyundiff --git a/host_applications/linux/apps/smem/CMakeLists.txt b/host_applications/linux/apps/smem/CMakeLists.txt 73*4882a593Smuzhiyunindex 0fa8328..f0d1e77 100644 74*4882a593Smuzhiyun--- a/host_applications/linux/apps/smem/CMakeLists.txt 75*4882a593Smuzhiyun+++ b/host_applications/linux/apps/smem/CMakeLists.txt 76*4882a593Smuzhiyun@@ -4,7 +4,7 @@ get_filename_component (VIDEOCORE_ROOT ../../../.. ABSOLUTE) 77*4882a593Smuzhiyun include (${VIDEOCORE_ROOT}/makefiles/cmake/global_settings.cmake) 78*4882a593Smuzhiyun 79*4882a593Smuzhiyun if (NOT WIN32) 80*4882a593Smuzhiyun- add_definitions(-Wall -Werror) 81*4882a593Smuzhiyun+ add_definitions(-Wall ) 82*4882a593Smuzhiyun endif () 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun include_directories ( 85*4882a593Smuzhiyundiff --git a/host_applications/linux/libs/bcm_host/CMakeLists.txt b/host_applications/linux/libs/bcm_host/CMakeLists.txt 86*4882a593Smuzhiyunindex 2154e53..c23779b 100644 87*4882a593Smuzhiyun--- a/host_applications/linux/libs/bcm_host/CMakeLists.txt 88*4882a593Smuzhiyun+++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt 89*4882a593Smuzhiyun@@ -3,7 +3,7 @@ if (WIN32) 90*4882a593Smuzhiyun set(VCOS_PLATFORM win32) 91*4882a593Smuzhiyun else () 92*4882a593Smuzhiyun set(VCOS_PLATFORM pthreads) 93*4882a593Smuzhiyun- add_definitions(-Wall -Werror) 94*4882a593Smuzhiyun+ add_definitions(-Wall ) 95*4882a593Smuzhiyun endif () 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun # set this as we want all the source of vchostif to be available in libbcm_host 98*4882a593Smuzhiyundiff --git a/host_applications/linux/libs/sm/CMakeLists.txt b/host_applications/linux/libs/sm/CMakeLists.txt 99*4882a593Smuzhiyunindex 5ce5aca..02aea7c 100644 100*4882a593Smuzhiyun--- a/host_applications/linux/libs/sm/CMakeLists.txt 101*4882a593Smuzhiyun+++ b/host_applications/linux/libs/sm/CMakeLists.txt 102*4882a593Smuzhiyun@@ -3,7 +3,7 @@ if (WIN32) 103*4882a593Smuzhiyun set(VCOS_PLATFORM win32) 104*4882a593Smuzhiyun else () 105*4882a593Smuzhiyun set(VCOS_PLATFORM pthreads) 106*4882a593Smuzhiyun- add_definitions(-Wall -Werror) 107*4882a593Smuzhiyun+ add_definitions(-Wall ) 108*4882a593Smuzhiyun endif () 109*4882a593Smuzhiyun 110*4882a593Smuzhiyun include_directories( ../../../.. 111*4882a593Smuzhiyundiff --git a/interface/mmal/CMakeLists.txt b/interface/mmal/CMakeLists.txt 112*4882a593Smuzhiyunindex 46f149d..06273dc 100644 113*4882a593Smuzhiyun--- a/interface/mmal/CMakeLists.txt 114*4882a593Smuzhiyun+++ b/interface/mmal/CMakeLists.txt 115*4882a593Smuzhiyun@@ -3,7 +3,7 @@ if (NOT DEFINED LIBRARY_TYPE) 116*4882a593Smuzhiyun set(LIBRARY_TYPE SHARED) 117*4882a593Smuzhiyun endif (NOT DEFINED LIBRARY_TYPE) 118*4882a593Smuzhiyun 119*4882a593Smuzhiyun-add_definitions(-Wall -Werror) 120*4882a593Smuzhiyun+add_definitions(-Wall ) 121*4882a593Smuzhiyun 122*4882a593Smuzhiyun add_library(mmal SHARED util/mmal_util.c) 123*4882a593Smuzhiyun 124*4882a593Smuzhiyundiff --git a/interface/vcos/CMakeLists.txt b/interface/vcos/CMakeLists.txt 125*4882a593Smuzhiyunindex 23a8d72..988b104 100644 126*4882a593Smuzhiyun--- a/interface/vcos/CMakeLists.txt 127*4882a593Smuzhiyun+++ b/interface/vcos/CMakeLists.txt 128*4882a593Smuzhiyun@@ -43,7 +43,7 @@ foreach (header ${HEADERS}) 129*4882a593Smuzhiyun endforeach () 130*4882a593Smuzhiyun 131*4882a593Smuzhiyun if (CMAKE_COMPILER_IS_GNUCC) 132*4882a593Smuzhiyun- add_definitions (-ggdb -Werror -Wall) 133*4882a593Smuzhiyun+ add_definitions (-ggdb -Wall) 134*4882a593Smuzhiyun endif () 135*4882a593Smuzhiyun 136*4882a593Smuzhiyun if (CMAKE_COMPILER_2005) 137*4882a593Smuzhiyundiff --git a/interface/vcos/pthreads/CMakeLists.txt b/interface/vcos/pthreads/CMakeLists.txt 138*4882a593Smuzhiyunindex 1d81ca3..b35cd8e 100644 139*4882a593Smuzhiyun--- a/interface/vcos/pthreads/CMakeLists.txt 140*4882a593Smuzhiyun+++ b/interface/vcos/pthreads/CMakeLists.txt 141*4882a593Smuzhiyun@@ -1,7 +1,7 @@ 142*4882a593Smuzhiyun # MSVC5 does not fully support C99, enabling declaration-after-statement 143*4882a593Smuzhiyun # warnings allows a common MSVC5 build error to be detected in Linux builds. 144*4882a593Smuzhiyun if (CMAKE_COMPILER_IS_GNUCC) 145*4882a593Smuzhiyun- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wdeclaration-after-statement") 146*4882a593Smuzhiyun+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wdeclaration-after-statement") 147*4882a593Smuzhiyun add_definitions (-D_GNU_SOURCE) 148*4882a593Smuzhiyun endif () 149*4882a593Smuzhiyun 150*4882a593Smuzhiyundiff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt 151*4882a593Smuzhiyunindex a157db1..dc384ca 100755 152*4882a593Smuzhiyun--- a/interface/vmcs_host/CMakeLists.txt 153*4882a593Smuzhiyun+++ b/interface/vmcs_host/CMakeLists.txt 154*4882a593Smuzhiyun@@ -2,7 +2,7 @@ 155*4882a593Smuzhiyun # interface/vmcs_host 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun # not working in release build 158*4882a593Smuzhiyun-# add_definitions(-Werror) 159*4882a593Smuzhiyun+# add_definitions() 160*4882a593Smuzhiyun 161*4882a593Smuzhiyun # vc_vchi_gencmd.c has a type-punning problem in vc_gencmd_read_response 162*4882a593Smuzhiyun add_definitions(-fno-strict-aliasing) 163*4882a593Smuzhiyun-- 164*4882a593Smuzhiyun2.23.0 165*4882a593Smuzhiyun 166