Skip to content

Commit

Permalink
Silence GCC warning on ICU macro
Browse files Browse the repository at this point in the history
  • Loading branch information
a-n-t-h-o-n-y committed Dec 18, 2024
1 parent 8a84337 commit 19b1df4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/esc/glyph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ namespace detail {

while (i < length) {
UChar32 ch;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
U8_NEXT(sv.data(), i, length, ch);
#pragma GCC diagnostic pop
if (ch < 0) {
throw std::runtime_error{"Invalid UTF-8 sequence"};
}
Expand Down

0 comments on commit 19b1df4

Please sign in to comment.