File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -45,21 +45,21 @@ template <auto V> struct character {
45
45
};
46
46
47
47
template <typename ... Content> struct negative_set {
48
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (CharT value, const flags & f) noexcept {
48
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char ([[maybe_unused]] CharT value, const flags & f) noexcept {
49
49
return !(Content::match_char (value, f) || ... || false );
50
50
}
51
51
};
52
52
53
53
template <typename ... Content> struct set {
54
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (CharT value, const flags & f) noexcept {
54
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (C[[maybe_unused]] harT value, const flags & f) noexcept {
55
55
return (Content::match_char (value, f) || ... || false );
56
56
}
57
57
};
58
58
59
59
template <auto ... Cs> struct enumeration : set<character<Cs>...> { };
60
60
61
61
template <typename ... Content> struct negate {
62
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (CharT value, const flags & f) noexcept {
62
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char ([[maybe_unused]] CharT value, const flags & f) noexcept {
63
63
return !(Content::match_char (value, f) || ... || false );
64
64
}
65
65
};
Original file line number Diff line number Diff line change @@ -1603,21 +1603,21 @@ template <auto V> struct character {
1603
1603
};
1604
1604
1605
1605
template <typename... Content> struct negative_set {
1606
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char(CharT value, const flags & f) noexcept {
1606
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char([[maybe_unused]] CharT value, const flags & f) noexcept {
1607
1607
return !(Content::match_char(value, f) || ... || false);
1608
1608
}
1609
1609
};
1610
1610
1611
1611
template <typename... Content> struct set {
1612
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char(CharT value, const flags & f) noexcept {
1612
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char(C[[maybe_unused]] harT value, const flags & f) noexcept {
1613
1613
return (Content::match_char(value, f) || ... || false);
1614
1614
}
1615
1615
};
1616
1616
1617
1617
template <auto... Cs> struct enumeration : set<character<Cs>...> { };
1618
1618
1619
1619
template <typename... Content> struct negate {
1620
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char(CharT value, const flags & f) noexcept {
1620
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char([[maybe_unused]] CharT value, const flags & f) noexcept {
1621
1621
return !(Content::match_char(value, f) || ... || false);
1622
1622
}
1623
1623
};
Original file line number Diff line number Diff line change @@ -1600,21 +1600,21 @@ template <auto V> struct character {
1600
1600
};
1601
1601
1602
1602
template <typename ... Content> struct negative_set {
1603
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (CharT value, const flags & f) noexcept {
1603
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char ([[maybe_unused]] CharT value, const flags & f) noexcept {
1604
1604
return !(Content::match_char (value, f) || ... || false );
1605
1605
}
1606
1606
};
1607
1607
1608
1608
template <typename ... Content> struct set {
1609
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (CharT value, const flags & f) noexcept {
1609
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (C[[maybe_unused]] harT value, const flags & f) noexcept {
1610
1610
return (Content::match_char (value, f) || ... || false );
1611
1611
}
1612
1612
};
1613
1613
1614
1614
template <auto ... Cs> struct enumeration : set<character<Cs>...> { };
1615
1615
1616
1616
template <typename ... Content> struct negate {
1617
- template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char (CharT value, const flags & f) noexcept {
1617
+ template <typename CharT> CTRE_FORCE_INLINE static constexpr bool match_char ([[maybe_unused]] CharT value, const flags & f) noexcept {
1618
1618
return !(Content::match_char (value, f) || ... || false );
1619
1619
}
1620
1620
};
You can’t perform that action at this time.
0 commit comments