From fbb588618c22cf0d6d99328e39e64ef0d744a3c5 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 23 Oct 2025 03:11:56 +0300
Subject: [PATCH] update dr_mp3.h from mainstream.
---
src/dr_mp3.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dr_mp3.h b/src/dr_mp3.h
index 4f776efab..93e02b5c9 100644
--- a/src/dr_mp3.h
+++ b/src/dr_mp3.h
@@ -1251,7 +1251,7 @@ static float drmp3_L3_ldexp_q2(float y, int exp_q2)
I've had reports of GCC 14 throwing an incorrect -Wstringop-overflow warning here. This is an attempt
to silence this warning.
*/
-#if (defined(__GNUC__) && (__GNUC__ >= 14)) && !defined(__clang__)
+#if (defined(__GNUC__) && (__GNUC__ >= 13)) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
@@ -1316,7 +1316,7 @@ static void drmp3_L3_decode_scalefactors(const drmp3_uint8 *hdr, drmp3_uint8 *is
scf[i] = drmp3_L3_ldexp_q2(gain, iscf[i] << scf_shift);
}
}
-#if (defined(__GNUC__) && (__GNUC__ >= 14)) && !defined(__clang__)
+#if (defined(__GNUC__) && (__GNUC__ >= 13)) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif