2016-07-10 16:14:11 +02:00
|
|
|
From 9382ae2431d2962c430e7149302c8690f5bc159c Mon Sep 17 00:00:00 2001
|
|
|
|
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
|
|
Date: Sun, 10 Jul 2016 15:06:15 +0200
|
|
|
|
Subject: [PATCH] build: do not use -Werror
|
|
|
|
|
|
|
|
Warnings come and go with various compiler versions, so using -Werror is
|
|
|
|
prone to cause build failures with various compiler versions, especially
|
|
|
|
newer versions that introduce new warnings.
|
|
|
|
|
|
|
|
Remove use of -Werror.
|
|
|
|
|
2017-06-02 13:11:33 +02:00
|
|
|
[Vincent: tweak patch for 20170531 release]
|
2019-10-26 09:56:38 +02:00
|
|
|
[Bernd: tweak patch for 20191018 release]
|
2017-06-02 13:11:33 +02:00
|
|
|
|
2016-07-10 16:14:11 +02:00
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
2017-06-02 13:11:33 +02:00
|
|
|
Signed-off-by: "Vicente Olivert Riera" <Vincent.Riera@imgtec.com>
|
2019-10-26 09:56:38 +02:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2016-07-10 16:14:11 +02:00
|
|
|
---
|
|
|
|
generate/unix/Makefile.config | 1 -
|
2019-10-26 09:56:38 +02:00
|
|
|
generate/unix/iasl/Makefile | 16 ++++++++--------
|
|
|
|
2 files changed, 8 insertions(+), 9 deletions(-)
|
2016-07-10 16:14:11 +02:00
|
|
|
|
|
|
|
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
|
2019-10-26 09:56:38 +02:00
|
|
|
index c28e8a9b1..7064bed97 100644
|
2016-07-10 16:14:11 +02:00
|
|
|
--- a/generate/unix/Makefile.config
|
|
|
|
+++ b/generate/unix/Makefile.config
|
2019-10-26 09:56:38 +02:00
|
|
|
@@ -204,7 +204,6 @@ CWARNINGFLAGS = \
|
2016-07-10 16:14:11 +02:00
|
|
|
-Wall\
|
|
|
|
-Wbad-function-cast\
|
|
|
|
-Wdeclaration-after-statement\
|
|
|
|
- -Werror\
|
|
|
|
-Wformat=2\
|
|
|
|
-Wmissing-declarations\
|
|
|
|
-Wmissing-prototypes\
|
|
|
|
diff --git a/generate/unix/iasl/Makefile b/generate/unix/iasl/Makefile
|
2019-10-26 09:56:38 +02:00
|
|
|
index 47ea73cab..2c756af79 100644
|
2016-07-10 16:14:11 +02:00
|
|
|
--- a/generate/unix/iasl/Makefile
|
|
|
|
+++ b/generate/unix/iasl/Makefile
|
2019-10-26 09:56:38 +02:00
|
|
|
@@ -360,32 +360,32 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prparser.y.h : $(ASL_COMPILER)/prparse
|
2016-07-10 16:14:11 +02:00
|
|
|
#
|
|
|
|
$(OBJDIR)/aslcompilerlex.o : $(OBJDIR)/aslcompilerlex.c
|
2017-06-02 13:11:33 +02:00
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
2016-07-10 16:14:11 +02:00
|
|
|
|
|
|
|
$(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c
|
2017-06-02 13:11:33 +02:00
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
2019-10-26 09:56:38 +02:00
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
|
|
|
|
|
|
|
$(OBJDIR)/dtcompilerparserlex.o : $(OBJDIR)/dtcompilerparserlex.c
|
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
|
|
|
|
|
|
|
$(OBJDIR)/dtcompilerparserparse.o : $(OBJDIR)/dtcompilerparserparse.c
|
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
2017-06-02 13:11:33 +02:00
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
2016-07-10 16:14:11 +02:00
|
|
|
|
|
|
|
$(OBJDIR)/dtparserlex.o : $(OBJDIR)/dtparserlex.c
|
2017-06-02 13:11:33 +02:00
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
2016-07-10 16:14:11 +02:00
|
|
|
|
|
|
|
$(OBJDIR)/dtparserparse.o : $(OBJDIR)/dtparserparse.c
|
2017-06-02 13:11:33 +02:00
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
2016-07-10 16:14:11 +02:00
|
|
|
|
|
|
|
$(OBJDIR)/prparserlex.o : $(OBJDIR)/prparserlex.c
|
2017-06-02 13:11:33 +02:00
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
2016-07-10 16:14:11 +02:00
|
|
|
|
|
|
|
$(OBJDIR)/prparserparse.o : $(OBJDIR)/prparserparse.c
|
2017-06-02 13:11:33 +02:00
|
|
|
@echo "- " "Intermediate" $<
|
|
|
|
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
|
|
|
|
+ @$(CC) -c $(CFLAGS) -Wall -o$@ $<
|
2019-10-26 09:56:38 +02:00
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|