1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core/mutex: fix -fpermissive warning in C++ mode

g++ gives the error message "error: invalid conversion from ‘void*’ to
‘list_node*’ [-fpermissive]"
This commit is contained in:
Joakim Nohlgård 2018-03-25 09:05:58 +02:00
parent 690c36b3cf
commit 1fdfa6480d

View File

@ -58,7 +58,7 @@ typedef struct {
* @brief This is the value of the mutex when locked and no threads are waiting
* for it
*/
#define MUTEX_LOCKED ((void *)-1)
#define MUTEX_LOCKED ((list_node_t *)-1)
/**
* @endcond
*/