From 5a74da031acab1c8533d8e9fe7f1f3890658abea Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 16 Mar 2026 03:02:20 +0200 Subject: [PATCH] try to avoid warning flood on android --- jni/Android.mk | 3 +++ libpcsxcore/psxcommon.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jni/Android.mk b/jni/Android.mk index 3e016ca9..8444e1f4 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -178,6 +178,9 @@ endif SOURCES_C += $(DYNAREC_DIR)/emu_if.c ifeq ($(HAVE_LIGHTREC),1) + ifeq ($(findstring clang,$(notdir $(TARGET_CC))),clang) + COREFLAGS += -Wno-initializer-overrides + endif COREFLAGS += -DLIGHTREC -DLIGHTREC_STATIC -DLIGHTREC_CODE_INV=0 EXTRA_INCLUDES += $(DEPS_DIR)/lightning/include \ $(DEPS_DIR)/lightrec \ diff --git a/libpcsxcore/psxcommon.h b/libpcsxcore/psxcommon.h index 845fc61d..d181eb27 100644 --- a/libpcsxcore/psxcommon.h +++ b/libpcsxcore/psxcommon.h @@ -80,7 +80,6 @@ typedef uint8_t boolean; #ifndef _WIN32 #define strnicmp strncasecmp #endif -#define __inline inline // Enables NLS/internationalization if active #ifdef ENABLE_NLS -- 2.47.3