summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2023-05-22 10:28:38 -0400
committerSolomon Peachy <pizza@shaftnet.org>2023-05-22 10:28:38 -0400
commitab0ba139f50a9c9b3eadbe1c15d44ce88cf980d3 (patch)
treeebe1d5a01723753372b0f24bd9fc6ae5d878c356
parent3a8d5525ae60fe0800d4a1a9c26c95f204b6b16a (diff)
downloadrockbox-ab0ba139f5.tar.gz
rockbox-ab0ba139f5.zip
pdbox: Gate the warning suppression to apply only to GCC 13 and newer.
Change-Id: Ie0f39fde5e682f3995ed852417b61ae383c5e23b
-rw-r--r--apps/plugins/pdbox/PDa/src/m_obj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_obj.c b/apps/plugins/pdbox/PDa/src/m_obj.c
index c46593bcd6..8d4947f202 100644
--- a/apps/plugins/pdbox/PDa/src/m_obj.c
+++ b/apps/plugins/pdbox/PDa/src/m_obj.c
@@ -272,7 +272,9 @@ static int outlet_eventno;
recursion */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
+#if __GNUC__ >= 13
#pragma GCC diagnostic ignored "-Wdangling-pointer"
+#endif
void outlet_setstacklim(void)
{
char c;