mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 06:12:43 +01:00
pkg/lua: add -Wno-cast-align
This commit is contained in:
parent
196ba5e3ff
commit
1bbcb5ef6e
@ -6,5 +6,7 @@ PKG_LICENSE=MIT
|
|||||||
|
|
||||||
include $(RIOTBASE)/pkg/pkg.mk
|
include $(RIOTBASE)/pkg/pkg.mk
|
||||||
|
|
||||||
|
CFLAGS += -Wno-cast-align
|
||||||
|
|
||||||
all: Makefile.lua
|
all: Makefile.lua
|
||||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.lua
|
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.lua
|
||||||
|
@ -26,7 +26,7 @@ int binsearch_str(const void *start, size_t offset, size_t stride, size_t nmemb,
|
|||||||
|
|
||||||
while (lo < hi) {
|
while (lo < hi) {
|
||||||
size_t mid = (lo + hi) / 2;
|
size_t mid = (lo + hi) / 2;
|
||||||
const char *target = *((const char *const *)(cstart + mid * stride));
|
const char *target = *((const char *const *)(uintptr_t)(cstart + mid * stride));
|
||||||
int cmp = strncmp(str, target, n);
|
int cmp = strncmp(str, target, n);
|
||||||
|
|
||||||
if (cmp == 0) {
|
if (cmp == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user