1 From b4084d9ae7d8ac3d7fe01cc745836313ae73afb6 Mon Sep 17 00:00:00 2001
2 From: Otavio Salvador <otavio@ossystems.com.br>
3 Date: Fri, 7 Sep 2012 20:22:47 -0300
4 Subject: [PATCH] perf tools: Do not treat warnings as errors
6 Newer GCC detect more warnings and this makes building of perf not
7 possible in the upcoming release of Yocto (1.3). We deal with that
8 making the warnings not fatal instead of changing perf code.
10 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 tools/perf/Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/tools/perf/Makefile b/tools/perf/Makefile
16 index d75c28a..854652a 100644
17 --- a/tools/perf/Makefile
18 +++ b/tools/perf/Makefile
19 @@ -225,7 +225,7 @@ ifndef PERF_DEBUG
23 -CFLAGS = -ggdb3 -Wall -Wextra -std=gnu99 -Werror $(CFLAGS_OPTIMIZE) -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) $(EXTRA_CFLAGS)
24 +CFLAGS = -ggdb3 -Wall -Wextra -std=gnu99 $(CFLAGS_OPTIMIZE) -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) $(EXTRA_CFLAGS)
25 EXTLIBS = -lpthread -lrt -lelf -lm
26 ALL_CFLAGS = $(CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
27 ALL_LDFLAGS = $(LDFLAGS)