From bfd364c8cf904c6e4f5cacf209687afd9c3f5435 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Fri, 10 Jun 2022 22:52:20 -0700
Subject: [PATCH] Disable "unused-result" warning in release builds

---
 src/build/Common.gmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/build/Common.gmake b/src/build/Common.gmake
index 60153e4149..a603627a8a 100644
--- a/src/build/Common.gmake
+++ b/src/build/Common.gmake
@@ -442,7 +442,7 @@ ifdef DEBUG
 else # RELEASE
  # -finline-functions (used to) break the baja build badly.
  # This also meant that -O3 wouldn't work either.
- CFLAGS	:= -O3 -fomit-frame-pointer -ffast-math -funroll-loops $(CFLAGS)
+ CFLAGS	:= -O3 -Wno-unused-result -fomit-frame-pointer -ffast-math -funroll-loops $(CFLAGS)
 endif
 
 -include targets.mk
-- 
GitLab