Fix nonnull-compare compile error 3155/head
authorHirokazu MORIKAWA <morikw2@gmail.com>
Tue, 13 Sep 2016 08:31:54 +0000 (17:31 +0900)
committerHirokazu MORIKAWA <morikw2@gmail.com>
Tue, 13 Sep 2016 08:31:54 +0000 (17:31 +0900)
---
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>
utils/logrotate/Makefile

index dbfa92907a13489a89b9716b91b5022035872479..9218a8c7609f511738939dc10355fa1be06bf481 100644 (file)
@@ -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