Skip to content

Commit

Permalink
Try to fix PVS Studio warning about an unused return value.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeterMugaas committed Jul 6, 2024
1 parent 8c8e6d2 commit 5a64fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions efxc2Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace efxc2Utils {
static_assert(std::is_pod<T2>(), "Requires POD output");

T2 t2;
std::memcpy(std::addressof(t2), std::addressof(t1), sizeof(T1));
(void)std::memcpy(std::addressof(t2), std::addressof(t1), sizeof(T1));
return t2;
}
#define M_BIT_CAST efxc2Utils::cpp11_bit_cast
Expand Down Expand Up @@ -158,4 +158,4 @@ namespace efxc2Utils {
std::string wstring_to_utf8(std::wstring const& wstr);
#endif
}
#endif /*EFXC2UTILS_H_INCLUDED*/
#endif /*EFXC2UTILS_H_INCLUDED*/

0 comments on commit 5a64fe4

Please sign in to comment.