forked from len0rd/rockbox
Silence warnings that happen on newer GCCs
(code is presumably correct) Change-Id: I3ee11b6a10dc87eb6f6178d6182397f0c7f686d5
This commit is contained in:
parent
26bebd77ab
commit
cddd8d66e2
2 changed files with 20 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue