From: notaz Date: Tue, 12 Sep 2023 21:10:13 +0000 (+0300) Subject: deal with lightrec warnings X-Git-Tag: r24l~186 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bc2028016a19488177aa1afc89b4af301450391;p=pcsx_rearmed.git deal with lightrec warnings they're just too annoying --- 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