deal with lightrec warnings
authornotaz <notasas@gmail.com>
Tue, 12 Sep 2023 21:10:13 +0000 (00:10 +0300)
committernotaz <notasas@gmail.com>
Tue, 12 Sep 2023 22:34:42 +0000 (01:34 +0300)
they're just too annoying

Makefile
libpcsxcore/lightrec/mem.c

index 2f58674..f1c47e3 100644 (file)
--- 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
index 2c76470..91bd908 100644 (file)
@@ -3,7 +3,9 @@
  * Copyright (C) 2022 Paul Cercueil <paul@crapouillou.net>
  */
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>