From 0bf83dfc56c300dc6eb2ac5709cc5459f001102c Mon Sep 17 00:00:00 2001 From: Hirokazu MORIKAWA Date: Tue, 13 Sep 2016 17:31:54 +0900 Subject: [PATCH] Fix nonnull-compare compile error --- config.c: In function 'strndup': config.c:87:10: error: nonnull argument 's' compared to NULL [-Werror=nonnull-compare] if(!s) ^ cc1: all warnings being treated as errors --- Signed-off-by: Hirokazu MORIKAWA --- utils/logrotate/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/logrotate/Makefile b/utils/logrotate/Makefile index dbfa92907a..9218a8c760 100644 --- a/utils/logrotate/Makefile +++ b/utils/logrotate/Makefile @@ -38,7 +38,7 @@ define Package/logrotate/conffiles /etc/logrotate.conf endef -EXTRA_CFLAGS += $(TARGET_CPPFLAGS) +EXTRA_CFLAGS += $(TARGET_CPPFLAGS) -Wno-nonnull-compare EXTRA_LDFLAGS += $(TARGET_LDFLAGS) define Build/Compile