mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
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>
This commit is contained in:
@@ -38,7 +38,7 @@ define Package/logrotate/conffiles
|
|||||||
/etc/logrotate.conf
|
/etc/logrotate.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
|
EXTRA_CFLAGS += $(TARGET_CPPFLAGS) -Wno-nonnull-compare
|
||||||
EXTRA_LDFLAGS += $(TARGET_LDFLAGS)
|
EXTRA_LDFLAGS += $(TARGET_LDFLAGS)
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
|||||||
Reference in New Issue
Block a user