test-mmio: fix build error with -std=gnu++20

Fixes #4890
This commit is contained in:
Christian Prochaska 2023-05-16 11:32:22 +02:00 committed by Christian Helmuth
parent 7f170e492e
commit da6b384e3a

View File

@ -134,15 +134,12 @@ struct Genode::Register
template <unsigned long _SHIFT, unsigned long _WIDTH>
struct Bitfield
{
enum {
/**
* Fetch template parameters
*/
SHIFT = _SHIFT,
WIDTH = _WIDTH,
BITFIELD_WIDTH = WIDTH,
};
/**
* Fetch template parameters
*/
static constexpr size_t SHIFT = _SHIFT;
static constexpr size_t WIDTH = _WIDTH;
static constexpr size_t BITFIELD_WIDTH = WIDTH;
/**
* Get an unshifted mask of this field