0001-Remove-Werror.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From ac52380eeca27e1e2e7eb5fb9d39059dbe58b919 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Wed, 7 Dec 2016 22:48:27 +0100
  4. Subject: [PATCH] Remove -Werror
  5. -Werror might cause build failures with newer versions of gcc or C
  6. libraries, not tested by upstream, for example:
  7. # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
  8. ^
  9. cc1: all warnings being treated as errors
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. ---
  12. CMakeLists.txt | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/CMakeLists.txt b/CMakeLists.txt
  15. index 7ae8ba4..825342f 100644
  16. --- a/CMakeLists.txt
  17. +++ b/CMakeLists.txt
  18. @@ -5,7 +5,7 @@ PROJECT(uhttpd C)
  19. INCLUDE (CheckFunctionExists)
  20. SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
  21. -ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -Os -Wall -Werror -Wmissing-declarations --std=gnu99 -g3)
  22. +ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -Os -Wall -Wmissing-declarations --std=gnu99 -g3)
  23. OPTION(TLS_SUPPORT "TLS support" ON)
  24. OPTION(LUA_SUPPORT "Lua support" ON)
  25. --
  26. 2.7.4