Skip to content

Commit

Permalink
Ignore conversion warning from GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Oct 29, 2024
1 parent 7afe83c commit abf2415
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/boost/crypt/hash/detail/sha3_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,16 @@ BOOST_CRYPT_GPU_ENABLED inline auto sha3_base<digest_size, is_xof>::update(Forwa

while (size--)
{
// Clearly everything has been casted to the correct type...
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
buffer_[buffer_index_++] ^= static_cast<boost::crypt::uint8_t>(static_cast<boost::crypt::uint8_t>(*data) &
static_cast<boost::crypt::uint8_t>(0xFF));
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif

if (buffer_index_ == buffer_size_)
{
Expand Down

0 comments on commit abf2415

Please sign in to comment.