mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 11:38:12 +00:00
Quiet shift-overflow compiler warning.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user