Skip to content

Commit 1ce6c92

Browse files
Ziemasfjtrujy
authored andcommitted
workaround: Prevent pointer mismatch error
Errors on gcc14. (void** is not implicitly convertible)
1 parent 0aa4778 commit 1ce6c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newlib/libc/include/sys/lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef struct __lock * _LOCK_T;
4141
extern void __retarget_lock_init(_LOCK_T *lock);
4242
#define __lock_init(lock) __retarget_lock_init(&lock)
4343
extern void __retarget_lock_init_recursive(_LOCK_T *lock);
44-
#define __lock_init_recursive(lock) __retarget_lock_init_recursive(&lock)
44+
#define __lock_init_recursive(lock) __retarget_lock_init_recursive((_LOCK_T*)&lock)
4545
extern void __retarget_lock_close(_LOCK_T lock);
4646
#define __lock_close(lock) __retarget_lock_close(lock)
4747
extern void __retarget_lock_close_recursive(_LOCK_T lock);

0 commit comments

Comments
 (0)