You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a lot of errors like this when trying to compile tests:
error[E0793]: reference to packed field is unaligned
--> src/ffi/pfvar.rs:2348:18
|
2348 | unsafe { &(*(::std::ptr::null::<pfsync_state_scrub>())).pfss_flags as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
Probably bindings need to be updated
The text was updated successfully, but these errors were encountered:
Hi,
I found a lot of errors like this when trying to compile tests:
Probably bindings need to be updated
The text was updated successfully, but these errors were encountered: