From bcf925a35f9b466aa88250ef74fac57dd19e3788 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 22 Apr 2025 08:55:37 -0400 Subject: [PATCH] codecs: Silence two sets of warnings in musepak and wma codecs The warnings triggered by -Wshift-negative-value are in the upstream code, and presumably "correct" Change-Id: I1cf20e12208f493c69e0852477d800cd417a67c6 --- lib/rbcodec/codecs/codecs.make | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/rbcodec/codecs/codecs.make b/lib/rbcodec/codecs/codecs.make index f2ba8d644c..598bee091c 100644 --- a/lib/rbcodec/codecs/codecs.make +++ b/lib/rbcodec/codecs/codecs.make @@ -79,6 +79,11 @@ ifneq ($(MEMORYSIZE),2) include $(RBCODECLIB_DIR)/codecs/cRSID/cRSID.make endif +ifeq ($(shell expr $(GCCNUM) \> 600),1) +$(MUSEPACKLIB): CODECFLAGS += -Wno-shift-negative-value +$(WMALIB): CODECFLAGS += -Wno-shift-negative-value +endif + ifndef DEBUG # set CODECFLAGS per codec lib, since gcc takes the last -Ox and the last # in a -ffoo -fno-foo pair, there is no need to filter them out