Fix more warnings.
This commit is contained in:
@@ -157,6 +157,7 @@ impl InteractionGroups {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(feature = "parallel"))]
|
||||||
pub fn clear(&mut self) {
|
pub fn clear(&mut self) {
|
||||||
#[cfg(feature = "simd-is-enabled")]
|
#[cfg(feature = "simd-is-enabled")]
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -268,7 +268,6 @@ impl ParallelIslandSolver {
|
|||||||
// See https://internals.rust-lang.org/t/shouldnt-pointers-be-send-sync-or/8818
|
// See https://internals.rust-lang.org/t/shouldnt-pointers-be-send-sync-or/8818
|
||||||
let thread = &self.thread;
|
let thread = &self.thread;
|
||||||
let mj_lambdas = std::sync::atomic::AtomicPtr::new(&mut self.mj_lambdas as *mut _);
|
let mj_lambdas = std::sync::atomic::AtomicPtr::new(&mut self.mj_lambdas as *mut _);
|
||||||
let positions = std::sync::atomic::AtomicPtr::new(&mut self.positions as *mut _);
|
|
||||||
let bodies = std::sync::atomic::AtomicPtr::new(bodies as *mut _);
|
let bodies = std::sync::atomic::AtomicPtr::new(bodies as *mut _);
|
||||||
let manifolds = std::sync::atomic::AtomicPtr::new(manifolds as *mut _);
|
let manifolds = std::sync::atomic::AtomicPtr::new(manifolds as *mut _);
|
||||||
let joints = std::sync::atomic::AtomicPtr::new(joints as *mut _);
|
let joints = std::sync::atomic::AtomicPtr::new(joints as *mut _);
|
||||||
@@ -281,8 +280,6 @@ impl ParallelIslandSolver {
|
|||||||
// Transmute *mut -> &mut
|
// Transmute *mut -> &mut
|
||||||
let mj_lambdas: &mut Vec<DeltaVel<Real>> =
|
let mj_lambdas: &mut Vec<DeltaVel<Real>> =
|
||||||
unsafe { std::mem::transmute(mj_lambdas.load(Ordering::Relaxed)) };
|
unsafe { std::mem::transmute(mj_lambdas.load(Ordering::Relaxed)) };
|
||||||
let positions: &mut Vec<Isometry<Real>> =
|
|
||||||
unsafe { std::mem::transmute(positions.load(Ordering::Relaxed)) };
|
|
||||||
let bodies: &mut RigidBodySet =
|
let bodies: &mut RigidBodySet =
|
||||||
unsafe { std::mem::transmute(bodies.load(Ordering::Relaxed)) };
|
unsafe { std::mem::transmute(bodies.load(Ordering::Relaxed)) };
|
||||||
let manifolds: &mut Vec<&mut ContactManifold> =
|
let manifolds: &mut Vec<&mut ContactManifold> =
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ impl PhysicsPipeline {
|
|||||||
|
|
||||||
#[cfg(feature = "parallel")]
|
#[cfg(feature = "parallel")]
|
||||||
{
|
{
|
||||||
use crate::geometry::ContactManifold;
|
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use std::sync::atomic::Ordering;
|
use std::sync::atomic::Ordering;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user