mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
firmware: fix misdefinition of QUEUE_GET_THREAD macro
This tries to access 'struct event_queue->send', but that is only available if HAVE_EXTENDED_MESSAGING_AND_NAME is set. This is not defined for bootloaders; this is a problem when trying to build a bootloader with debugging enabled, because the misdefined macro is used in some KERNEL_ASSERTs that get compiled out on non-debug builds. Change-Id: I334eedcda1ee7047c8dddcb7fa0c9717156f2a0a
This commit is contained in:
parent
aaee78586a
commit
d21d8f49fc
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ struct queue_sender_list
|
|||
};
|
||||
#endif /* HAVE_EXTENDED_MESSAGING_AND_NAME */
|
||||
|
||||
#ifdef HAVE_PRIORITY_SCHEDULING
|
||||
#if defined(HAVE_EXTENDED_MESSAGING_AND_NAME)
|
||||
#define QUEUE_GET_THREAD(q) \
|
||||
(((q)->send == NULL) ? NULL : (q)->send->blocker.thread)
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue