summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox/PDa/src/m_obj.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-13 20:09:14 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-13 20:09:14 -0400
commitcddd8d66e27177d4381953237e054a53bfa92d25 (patch)
tree172809c92568f6589ad6bcd945c8df02838a7a3a /apps/plugins/pdbox/PDa/src/m_obj.c
parent26bebd77abe94abd415ff46d67b52153dd19f85b (diff)
downloadrockbox-cddd8d66e2.tar.gz
rockbox-cddd8d66e2.tar.bz2
rockbox-cddd8d66e2.zip
Silence warnings that happen on newer GCCs
(code is presumably correct) Change-Id: I3ee11b6a10dc87eb6f6178d6182397f0c7f686d5
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/m_obj.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/m_obj.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_obj.c b/apps/plugins/pdbox/PDa/src/m_obj.c
index 994b0bffed..d06caa12fd 100644
--- a/apps/plugins/pdbox/PDa/src/m_obj.c
+++ b/apps/plugins/pdbox/PDa/src/m_obj.c
@@ -270,6 +270,8 @@ static int outlet_eventno;
/* set a stack limit (on each incoming event that can set off messages)
for the outlet functions to check to prevent stack overflow from message
recursion */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
void outlet_setstacklim(void)
{
char c;
@@ -277,6 +279,7 @@ void outlet_setstacklim(void)
stacklimit = (&c) - STACKSIZE;
outlet_eventno++;
}
+#pragma GCC diagnostic pop
/* get a number unique to the (clock, MIDI, GUI, etc.) event we're on */
int sched_geteventno( void)