From 3cb2d76c1e2375ecce69f2c3f462be979295c753 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Apr 2022 10:15:27 +0200 Subject: Work around bogus -Wrestrict in GCC 12 (GCC bug #105329) --- libbutl/utf8.ixx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbutl/utf8.ixx b/libbutl/utf8.ixx index 3d2e092..10624f8 100644 --- a/libbutl/utf8.ixx +++ b/libbutl/utf8.ixx @@ -116,7 +116,7 @@ namespace butl { if (b < 0xFE) { - *what = b < 0xFC ? "5" : "6"; + *what = b < 0xFC ? '5' : '6'; *what += "-byte length UTF-8 sequence"; } else -- cgit v1.1