Skip to content

Commit 3ac54e2

Browse files
ryanbreenclaude
andcommitted
fix(libc): prefix unused syscall args with underscore
The syscall() stub function requires this signature for C ABI compatibility but the current implementation doesn't use the arguments (returns fixed values for FUTEX and GETRANDOM). Prefix with underscore to silence warnings. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent adfb6ef commit 3ac54e2

File tree

1 file changed

+1
-1
lines changed
  • libs/libbreenix-libc/src

1 file changed

+1
-1
lines changed

libs/libbreenix-libc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ pub extern "C" fn pause() -> i32 {
833833
/// This provides a way for std to make syscalls. We implement the common
834834
/// syscalls that std uses directly.
835835
#[no_mangle]
836-
pub unsafe extern "C" fn syscall(num: i64, a1: i64, a2: i64, a3: i64, a4: i64, a5: i64, a6: i64) -> i64 {
836+
pub unsafe extern "C" fn syscall(num: i64, _a1: i64, _a2: i64, _a3: i64, _a4: i64, _a5: i64, _a6: i64) -> i64 {
837837
// Linux x86_64 syscall numbers
838838
const SYS_FUTEX: i64 = 202;
839839
const SYS_GETRANDOM: i64 = 318;

0 commit comments

Comments
 (0)