diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 16:32:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 16:32:08 +0200 |
commit | 5bf2dd09110f257acc730eab71301e1dede1c710 (patch) | |
tree | 291da1bd5a9aac4cdb50efe0c4884bebf75e4d82 /web/server/apache | |
parent | 758b66cf9ce32c44b37cd7e2c65b71d89c0240bf (diff) |
Suppress (potential) bogus GCC 12 -Wrestrict warnings
Diffstat (limited to 'web/server/apache')
-rw-r--r-- | web/server/apache/request.cxx | 2 | ||||
-rw-r--r-- | web/server/apache/service.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/server/apache/request.cxx b/web/server/apache/request.cxx index 64e1e6d..f6e9f15 100644 --- a/web/server/apache/request.cxx +++ b/web/server/apache/request.cxx @@ -789,7 +789,7 @@ namespace web if (is != nullptr) { if (r != nullptr) - throw invalid_argument ("multiple uploads for '" + name + "'"); + throw invalid_argument ("multiple uploads for '" + name + '\''); r = is; } diff --git a/web/server/apache/service.cxx b/web/server/apache/service.cxx index af5873e..6d02c1a 100644 --- a/web/server/apache/service.cxx +++ b/web/server/apache/service.cxx @@ -47,7 +47,7 @@ namespace web for (const auto& o: od) { auto i ( - option_descriptions_.emplace (name_ + "-" + o.first, o.second)); + option_descriptions_.emplace (name_ + '-' + o.first, o.second)); assert (i.second); *d++ = |