[Skiboot] [PATCH] Makefiles: Remove --Wno-stringop-truncation

Oliver O'Halloran oohall at gmail.com
Thu Jul 25 15:36:38 AEST 2019


To disable a warning you use the command line parameter:

	 -Wno-<warning-name>, not
	--Wno-<warning-name>

GCC seems to ignore parameters starting with a double dash, so we've
been building with the stringop-trunction warning enabled for about a
year now and no one has complained. Away it goes.

Fixes: cd2b103f2488 ("Makefile: Check -Wno-stringop-truncation is supported")
Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
 Makefile.main | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Makefile.main b/Makefile.main
index 56fa2bae9e14..efadb821107e 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -30,7 +30,6 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
 	  -Wmissing-prototypes -Wmissing-declarations \
 	  -Wwrite-strings -Wcast-align \
 	  -Winit-self \
-	  $(call try-cflag,$(CC),--Wno-stringop-truncation) \
 	  -Werror
 
 # Host tools and options
-- 
2.21.0



More information about the Skiboot mailing list