mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 21:47:41 +00:00
Quiet shift-overflow compiler warning.
This commit is contained in:
@@ -132,7 +132,10 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static constexpr value_type mask() {
|
static constexpr value_type mask() {
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wshift-count-overflow"
|
||||||
return (~(~(0UL) << width()));
|
return (~(~(0UL) << width()));
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
static value_type reflect(value_type x) {
|
static value_type reflect(value_type x) {
|
||||||
|
Reference in New Issue
Block a user