This PR:
- removes 3 warnings from the global
DisableSpecificWarnings
list - improves code hygiene
This PR:
DisableSpecificWarnings
listThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Wouldn’t this be better in two separate PR’s?
I realise the code changes are trivial but as far as I can tell they’re not Windows specific. It wouldn’t be the first time an innocuos cast has had a side effect. IMHO the warnings removal and code changes should be in separate PR’s.
I can tell they’re not Windows specific.
True.
240@@ -241,7 +241,7 @@ constexpr std::array<uint32_t, 25> GenerateSyndromeConstants() {
241 std::array<uint32_t, 25> SYNDROME_CONSTS{};
242 for (int k = 1; k < 6; ++k) {
243 for (int shift = 0; shift < 5; ++shift) {
244- int16_t b = GF1024_LOG.at(1 << shift);
245+ int16_t b = GF1024_LOG.at(1ULL << shift);
size_t
as std::array::at()
expects an argument of such a type.
Wouldn’t this be better in two separate PR’s?
I realise the code changes are trivial but as far as I can tell they’re not Windows specific. It wouldn’t be the first time an innocuos cast has had a side effect. IMHO the warnings removal and code changes should be in separate PR’s.
I separated some changes into #26189.
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4018
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4334
208@@ -209,7 +209,7 @@ enum opcodetype
209 };
210
211 // Maximum value that an opcode can be
212-static const unsigned int MAX_OPCODE = OP_NOP10;
213+static constexpr auto MAX_OPCODE = OP_NOP10;
MAX_OPCODE = OP_NOP10
into enum opcodetype
definition?