Browse Source

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>
lilik-openwrt-22.03
Hirokazu MORIKAWA 8 years ago
parent
commit
0bf83dfc56
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/logrotate/Makefile

+ 1
- 1
utils/logrotate/Makefile View 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


Loading…
Cancel
Save