commit 0bf83dfc56c300dc6eb2ac5709cc5459f001102c
parent 72f770f16b484b80b57935cd7c0833301678def4
Author: Hirokazu MORIKAWA <morikw2@gmail.com>
Date: Tue, 13 Sep 2016 17:31:54 +0900
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 <morikw2@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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