Gcc12 related fixes (#1138)

* GCC12 related fixes but still compiles on GCC9

* Suppress warnings about volatile +=

* Enable c++20 if supported by the compiler

On gcc12 we need to use -std=c++20 since constexpr .c_str() on std::string is only officially available since c++20 and the new gcc wouldnt let us use it with older standard

* code format

---------

Co-authored-by: Eisenberger Tamas <e.tamas@iwstudio.hu>
This commit is contained in:
E.T 2023-06-09 21:50:42 +02:00 committed by GitHub
parent 47eda54d6a
commit a2e5e03f07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 30 additions and 9 deletions

View file

@ -162,8 +162,8 @@ constexpr ConfigAmp config_amp(
const Direction direction,
const Band band) {
return {{
{.direction = direction, .band = band, .amplify = false},
{.direction = direction, .band = band, .amplify = true},
Config(direction, band, false),
Config(direction, band, true),
}};
}