[LEDE-DEV] [PATCH] package/elfutils: add CFLAG -Wno-format-nonliteral

Alexander Couzens lynxis at fe80.eu
Fri Aug 4 04:09:12 PDT 2017


When a library is using fortify-packages GCC will complain about
"error: format not a string literal, argument types not checked"
This is the problem of fortify-headers which do additional checks
of printf()s.

Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
 package/libs/elfutils/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/libs/elfutils/Makefile b/package/libs/elfutils/Makefile
index 869513f16f..a726691d3a 100644
--- a/package/libs/elfutils/Makefile
+++ b/package/libs/elfutils/Makefile
@@ -68,7 +68,7 @@ endif
 CONFIGURE_ARGS += \
 	--without-lzma
 
-TARGET_CFLAGS += -D_GNU_SOURCE -Wno-unused-result
+TARGET_CFLAGS += -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral
 
 define Build/InstallDev
 	$(INSTALL_DIR) $(1)/usr/include
-- 
2.13.3




More information about the Lede-dev mailing list