diff --git a/firmware/common/crc.hpp b/firmware/common/crc.hpp index fdb43ba3..cc56597c 100644 --- a/firmware/common/crc.hpp +++ b/firmware/common/crc.hpp @@ -132,7 +132,10 @@ private: } static constexpr value_type mask() { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshift-count-overflow" return (~(~(0UL) << width())); +#pragma GCC diagnostic pop } static value_type reflect(value_type x) {