0003-Disable-Werror-everywhere.patch 6.2 KB

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