mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
added [[maybe_unused]] attribute to char parameter in ASCII validation function to allow release builds to compile
This commit is contained in:
committed by
Mateusz Pusz
parent
36bee5a8c3
commit
852c6e90fb
@@ -10,7 +10,7 @@ struct basic_symbol_text {
|
||||
basic_fixed_string<StandardCharT, N> standard_;
|
||||
basic_fixed_string<char, M> ascii_;
|
||||
|
||||
constexpr void validate_ascii_char(char c) noexcept { assert((c & 0x80) == 0); }
|
||||
constexpr void validate_ascii_char([[maybe_unused]] char c) noexcept { assert((c & 0x80) == 0); }
|
||||
|
||||
template<std::size_t P>
|
||||
constexpr void validate_ascii_string(const char (&s)[P + 1]) noexcept
|
||||
|
Reference in New Issue
Block a user