The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / zlog / 0002-compile-Remove-Werror-and-avoid-build-failures-becau.patch
1 From 4a08c9e07fa8b7a1d6a76b927ea97e3eaa784845 Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
3 Date: Sun, 26 Oct 2014 16:16:25 -0300
4 Subject: [PATCH] compile: Remove -Werror and avoid build failures because of
5  warnings
6
7 Using -Werror on production is a bad idea, as otherwise harmless warnings
8 get treated as errors breaking builds. This is currently the case with
9 Nios-II architecture toolchain, warning about a deprecated macro:
10
11 ../usr/nios2-buildroot-linux-gnu/sysroot/usr/include/features.h:148:3:
12 error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
13  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
14
15 Instead of trying to fix the macro, let's fix the real issue here,
16 and remove -Werror.
17
18 Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
19 ---
20  src/makefile | 2 +-
21  1 file changed, 1 insertion(+), 1 deletion(-)
22
23 diff --git a/src/makefile b/src/makefile
24 index 294dc08..4ac4c43 100644
25 --- a/src/makefile
26 +++ b/src/makefile
27 @@ -32,7 +32,7 @@ ZLOG_MINOR=2
28  # Fallback to gcc when $CC is not in $PATH.
29  CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
30  OPTIMIZATION?=-O2
31 -WARNINGS=-Wall -Werror -Wstrict-prototypes -fwrapv
32 +WARNINGS=-Wall -Wstrict-prototypes -fwrapv
33  DEBUG?= -g -ggdb
34  REAL_CFLAGS=$(OPTIMIZATION) -fPIC -pthread $(CFLAGS) $(WARNINGS) $(DEBUG)
35  REAL_LDFLAGS=$(LDFLAGS) -pthread
36 -- 
37 2.1.0
38