From 3bc2028016a19488177aa1afc89b4af301450391 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 13 Sep 2023 00:10:13 +0300 Subject: [PATCH] deal with lightrec warnings they're just too annoying --- Makefile | 2 ++ libpcsxcore/lightrec/mem.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 2f58674b..f1c47e3c 100644 --- a/Makefile +++ b/Makefile @@ -129,6 +129,8 @@ OBJS += deps/lightning/lib/jit_disasm.o \ deps/lightrec/optimizer.o \ deps/lightrec/regcache.o deps/lightning/%.o: CFLAGS += -DHAVE_MMAP=P_HAVE_MMAP +deps/lightning/%: CFLAGS += -w +deps/lightrec/%: CFLAGS += -w libpcsxcore/lightrec/mem.o: CFLAGS += -D_GNU_SOURCE ifeq ($(MMAP_WIN32),1) CFLAGS += -Iinclude/mman -I deps/mman diff --git a/libpcsxcore/lightrec/mem.c b/libpcsxcore/lightrec/mem.c index 2c764701..91bd9084 100644 --- a/libpcsxcore/lightrec/mem.c +++ b/libpcsxcore/lightrec/mem.c @@ -3,7 +3,9 @@ * Copyright (C) 2022 Paul Cercueil */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include #include -- 2.39.5