mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +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
|
||||
|
||||
CFLAGS += -Wno-cast-align
|
||||
|
||||
all: 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) {
|
||||
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);
|
||||
|
||||
if (cmp == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user