File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -362,10 +362,14 @@ pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
362
362
pub const _SC_IOV_MAX: c_int = 60 ;
363
363
pub const _SC_SYMLOOP_MAX: c_int = 173 ;
364
364
365
+ #[ allow( unused_unsafe) ] // `addr_of!(EXTERN_STATIC)` is now considered safe
365
366
pub static CLOCK_MONOTONIC : clockid_t = unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_MONOTONIC) ) } ;
367
+ #[ allow( unused_unsafe) ]
366
368
pub static CLOCK_PROCESS_CPUTIME_ID : clockid_t =
367
369
unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_PROCESS_CPUTIME_ID) ) } ;
370
+ #[ allow( unused_unsafe) ]
368
371
pub static CLOCK_REALTIME : clockid_t = unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_REALTIME) ) } ;
372
+ #[ allow( unused_unsafe) ]
369
373
pub static CLOCK_THREAD_CPUTIME_ID : clockid_t =
370
374
unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_THREAD_CPUTIME_ID) ) } ;
371
375
You can’t perform that action at this time.
0 commit comments