From: Hirokazu MORIKAWA Date: Tue, 13 Sep 2016 08:31:54 +0000 (+0900) Subject: Fix nonnull-compare compile error X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0bf83dfc56c300dc6eb2ac5709cc5459f001102c;p=openwrt-packages.git 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 --- diff --git a/utils/logrotate/Makefile b/utils/logrotate/Makefile index dbfa92907..9218a8c76 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