Skip to content

Commit

Permalink
Auto merge of #3516 - JohnTitor:fix-wasi-struct, r=JohnTitor
Browse files Browse the repository at this point in the history
Allow dead_code on `clockid_t`

Fixes CI
  • Loading branch information
bors committed Jan 6, 2024
2 parents e673aaa + 38c9d43 commit ab55aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/psp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,15 +1382,18 @@ s_paren! {
pub struct SceUid(pub i32);

#[repr(transparent)]
#[allow(dead_code)]
pub struct SceMpeg(*mut *mut c_void);

#[repr(transparent)]
#[allow(dead_code)]
pub struct SceMpegStream(*mut c_void);

#[repr(transparent)]
pub struct Mp3Handle(pub i32);

#[repr(transparent)]
#[allow(dead_code)]
pub struct RegHandle(u32);
}

Expand Down
1 change: 1 addition & 0 deletions src/wasi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ s_paren! {
// in wasi-libc clockid_t is const struct __clockid* (where __clockid is an opaque struct),
// but that's an implementation detail that we don't want to have to deal with
#[repr(transparent)]
#[allow(dead_code)]
pub struct clockid_t(*const u8);
}

Expand Down

0 comments on commit ab55aed

Please sign in to comment.