Skip to content

Commit

Permalink
fixup: unused return warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Jan 16, 2024
1 parent b67b736 commit a9b7c29
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/cabanamd_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ void CbnMD<t_System, t_Neighbor>::check_correctness( int step )
log_err( err, "Cannot open input file: ", filename );
}

fread( &ntmp, sizeof( T_INT ), 1, fpref );
(void)fread( &ntmp, sizeof( T_INT ), 1, fpref );
if ( ntmp != n )
{
log_err( err, "Mismatch in current and reference atom counts" );
Expand All @@ -511,12 +511,12 @@ void CbnMD<t_System, t_Neighbor>::check_correctness( int step )
Kokkos::View<T_F_FLOAT **, Kokkos::LayoutRight> fref( "Correctness::f", 3,
n );

fread( idref.data(), sizeof( T_INT ), n, fpref );
fread( typeref.data(), sizeof( T_INT ), n, fpref );
fread( qref.data(), sizeof( T_FLOAT ), n, fpref );
fread( xref.data(), sizeof( T_X_FLOAT ), 3 * n, fpref );
fread( vref.data(), sizeof( T_V_FLOAT ), 3 * n, fpref );
fread( fref.data(), sizeof( T_F_FLOAT ), 3 * n, fpref );
(void)fread( idref.data(), sizeof( T_INT ), n, fpref );
(void)fread( typeref.data(), sizeof( T_INT ), n, fpref );
(void)fread( qref.data(), sizeof( T_FLOAT ), n, fpref );
(void)fread( xref.data(), sizeof( T_X_FLOAT ), 3 * n, fpref );
(void)fread( vref.data(), sizeof( T_V_FLOAT ), 3 * n, fpref );
(void)fread( fref.data(), sizeof( T_F_FLOAT ), 3 * n, fpref );

T_FLOAT sumdelrsq = 0.0;
T_FLOAT sumdelvsq = 0.0;
Expand Down

0 comments on commit a9b7c29

Please sign in to comment.