fix some unused constant warning on some Windows targets
This commit is contained in:
parent
b6ab1fae73
commit
9c977530b5
@ -65,6 +65,7 @@ unsafe fn abort() -> ! {
|
||||
//
|
||||
// Note: this is the same implementation as in libstd's `abort_internal`
|
||||
unsafe fn abort() -> ! {
|
||||
#[allow(unused)]
|
||||
const FAST_FAIL_FATAL_APP_EXIT: usize = 7;
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
|
||||
|
@ -289,6 +289,7 @@ pub fn dur2timeout(dur: Duration) -> c::DWORD {
|
||||
/// that function for more information on `__fastfail`
|
||||
#[allow(unreachable_code)]
|
||||
pub fn abort_internal() -> ! {
|
||||
#[allow(unused)]
|
||||
const FAST_FAIL_FATAL_APP_EXIT: usize = 7;
|
||||
#[cfg(not(miri))] // inline assembly does not work in Miri
|
||||
unsafe {
|
||||
|
Loading…
Reference in New Issue
Block a user