Skip to content

Commit

Permalink
avoid compiler warnings of unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Jun 9, 2024
1 parent b897a58 commit ce8320a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utilities/stir_timings.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class Timings : public TimedObject
void create_std_vector()
{
std::vector<float> tmp(this->v1.size());
tmp[0] = 1; // assign something to avoid compiler warnings of unused variable
}
//! create proj_data in memory object
void create_proj_data_in_mem_no_init()
Expand Down

0 comments on commit ce8320a

Please sign in to comment.