From ab0ba139f50a9c9b3eadbe1c15d44ce88cf980d3 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 22 May 2023 10:28:38 -0400 Subject: [PATCH] pdbox: Gate the warning suppression to apply only to GCC 13 and newer. Change-Id: Ie0f39fde5e682f3995ed852417b61ae383c5e23b --- apps/plugins/pdbox/PDa/src/m_obj.c | 2 ++ 1 file changed, 2 insertions(+) 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;