diff options
Diffstat (limited to 'src/support/string.cpp')
-rw-r--r-- | src/support/string.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/support/string.cpp b/src/support/string.cpp index 7dc9ba89c..96056d90a 100644 --- a/src/support/string.cpp +++ b/src/support/string.cpp @@ -152,7 +152,8 @@ std::optional<uint32_t> takeWTF8CodePoint(std::string_view& str) { uint8_t leading = str[0]; size_t trailingBytes; - uint32_t u; + // Initialized only to avoid spurious compiler warnings. + uint32_t u = 0; if ((leading & 0b10000000) == 0b00000000) { // 0xxxxxxx trailingBytes = 0; |