Skip to content

Commit c85fdf4

Browse files
Ziemasfjtrujy
authored andcommitted
Fix GCC error/warnings
Prevent pointer mismatch error, Errors on gcc14. (void** is not implicitly convertible) 15 Fix similar errors for GCC 15
1 parent 66b7f08 commit c85fdf4

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)