mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
build: Fix build warnings on Windows (#32500)
Disable some code for Windows, which is causing build warnings. When it cannot be easily disabled (mainly for the incomplete BHM and sandbox feature), allow dead code.
This commit is contained in:
parent
6b6872831c
commit
7982f0dc27
4 changed files with 10 additions and 0 deletions
|
@ -43,13 +43,17 @@ pub struct Registers {
|
|||
pub frame_ptr: Address,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct NativeStack {
|
||||
instruction_ptrs: [*mut std::ffi::c_void; MAX_NATIVE_FRAMES],
|
||||
#[allow(dead_code)]
|
||||
stack_ptrs: [*mut std::ffi::c_void; MAX_NATIVE_FRAMES],
|
||||
#[allow(dead_code)]
|
||||
count: usize,
|
||||
}
|
||||
|
||||
impl NativeStack {
|
||||
#[allow(dead_code)]
|
||||
pub fn new() -> Self {
|
||||
NativeStack {
|
||||
instruction_ptrs: [ptr::null_mut(); MAX_NATIVE_FRAMES],
|
||||
|
@ -58,6 +62,7 @@ impl NativeStack {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn process_register(
|
||||
&mut self,
|
||||
instruction_ptr: *mut std::ffi::c_void,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue