1
0
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:
Marian Buschsieweke 2021-11-05 22:52:47 +01:00
parent 196ba5e3ff
commit 1bbcb5ef6e
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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) {