From 43e20cd7df41c98df7110986410cb9bcb9c1e71b Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Thu, 6 Jun 2024 16:32:04 -0400 Subject: [PATCH] Fix an uninitialized variable warning. --- hoomd/mpcd/test/communicator_mpi_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hoomd/mpcd/test/communicator_mpi_test.cc b/hoomd/mpcd/test/communicator_mpi_test.cc index 118f1862e9..3a8af9bc02 100644 --- a/hoomd/mpcd/test/communicator_mpi_test.cc +++ b/hoomd/mpcd/test/communicator_mpi_test.cc @@ -480,7 +480,8 @@ void test_communicator_migrate(communicator_creator comm_creator, comm->migrateParticles(2); { unsigned int tag(0xffffffff), type(0xffffffff); - Scalar3 pos, vel; + Scalar3 pos = make_scalar3(0,0,0); + Scalar3 vel = make_scalar3(0,0,0); if (pdata->getN()) {