xref: /OK3568_Linux_fs/buildroot/package/acpica/0001-build-do-not-use-Werror.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 9382ae2431d2962c430e7149302c8690f5bc159c Mon Sep 17 00:00:00 2001
2From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3Date: Sun, 10 Jul 2016 15:06:15 +0200
4Subject: [PATCH] build: do not use -Werror
5
6Warnings come and go with various compiler versions, so using -Werror is
7prone to cause build failures with various compiler versions, especially
8newer versions that introduce new warnings.
9
10Remove use of -Werror.
11
12[Vincent: tweak patch for 20170531 release]
13[Bernd: tweak patch for 20191018 release]
14
15Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
16Signed-off-by: "Vicente Olivert Riera" <Vincent.Riera@imgtec.com>
17Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
18---
19 generate/unix/Makefile.config |  1 -
20 generate/unix/iasl/Makefile   | 16 ++++++++--------
21 2 files changed, 8 insertions(+), 9 deletions(-)
22
23diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
24index c28e8a9b1..7064bed97 100644
25--- a/generate/unix/Makefile.config
26+++ b/generate/unix/Makefile.config
27@@ -204,7 +204,6 @@ CWARNINGFLAGS = \
28     -Wall\
29     -Wbad-function-cast\
30     -Wdeclaration-after-statement\
31-    -Werror\
32     -Wformat=2\
33     -Wmissing-declarations\
34     -Wmissing-prototypes\
35diff --git a/generate/unix/iasl/Makefile b/generate/unix/iasl/Makefile
36index 47ea73cab..2c756af79 100644
37--- a/generate/unix/iasl/Makefile
38+++ b/generate/unix/iasl/Makefile
39@@ -360,32 +360,32 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prparser.y.h :       $(ASL_COMPILER)/prparse
40 #
41 $(OBJDIR)/aslcompilerlex.o :   $(OBJDIR)/aslcompilerlex.c
42 	@echo "- " "Intermediate" $<
43-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
44+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
45
46 $(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c
47 	@echo "- " "Intermediate" $<
48-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
49+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
50
51 $(OBJDIR)/dtcompilerparserlex.o :      $(OBJDIR)/dtcompilerparserlex.c
52 	@echo "- " "Intermediate" $<
53-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
54+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
55
56 $(OBJDIR)/dtcompilerparserparse.o :    $(OBJDIR)/dtcompilerparserparse.c
57 	@echo "- " "Intermediate" $<
58-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
59+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
60
61 $(OBJDIR)/dtparserlex.o :      $(OBJDIR)/dtparserlex.c
62 	@echo "- " "Intermediate" $<
63-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
64+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
65
66 $(OBJDIR)/dtparserparse.o :    $(OBJDIR)/dtparserparse.c
67 	@echo "- " "Intermediate" $<
68-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
69+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
70
71 $(OBJDIR)/prparserlex.o :      $(OBJDIR)/prparserlex.c
72 	@echo "- " "Intermediate" $<
73-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
74+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
75
76 $(OBJDIR)/prparserparse.o :    $(OBJDIR)/prparserparse.c
77 	@echo "- " "Intermediate" $<
78-	@$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
79+	@$(CC) -c $(CFLAGS) -Wall -o$@ $<
80--
812.20.1
82
83