From 5bf2dd09110f257acc730eab71301e1dede1c710 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Oct 2022 16:32:08 +0200 Subject: Suppress (potential) bogus GCC 12 -Wrestrict warnings --- libbrep/build.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbrep/build.cxx') diff --git a/libbrep/build.cxx b/libbrep/build.cxx index 03775c4..c095b32 100644 --- a/libbrep/build.cxx +++ b/libbrep/build.cxx @@ -24,7 +24,7 @@ namespace brep { if (s == "building") return build_state::building; else if (s == "built") return build_state::built; - else throw invalid_argument ("invalid build state '" + s + "'"); + else throw invalid_argument ("invalid build state '" + s + '\''); } // force_state @@ -48,7 +48,7 @@ namespace brep if (s == "unforced") return force_state::unforced; else if (s == "forcing") return force_state::forcing; else if (s == "forced") return force_state::forced; - else throw invalid_argument ("invalid force state '" + s + "'"); + else throw invalid_argument ("invalid force state '" + s + '\''); } // build -- cgit v1.1