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