diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 15:52:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 16:06:26 +0200 |
commit | bc6050a7b42581f0d4fbbe3f4b38b7ed02239d72 (patch) | |
tree | afa63befc8013387c8eabee22f53092330be82b3 /libbutl/b.cxx | |
parent | 95ee62c4079e68d9b2444b490cfb68c703023ab8 (diff) |
Suppress bogus GCC 12 -Wrestrict warning
Diffstat (limited to 'libbutl/b.cxx')
-rw-r--r-- | libbutl/b.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbutl/b.cxx b/libbutl/b.cxx index 74a430c..ee5c8a5 100644 --- a/libbutl/b.cxx +++ b/libbutl/b.cxx @@ -87,7 +87,7 @@ namespace butl // Note that quoting is essential here. // for (const dir_path& p: projects) - ps.push_back ("'" + p.representation () + "'"); + ps.push_back ('\'' + p.representation () + '\''); pr = process_start_callback ( cmd_callback ? cmd_callback : [] (const char* const*, size_t) {}, @@ -297,7 +297,7 @@ namespace butl assert (!pr.wait ()); throw b_error ( - string ("process ") + pp.recall_string () + " " + to_string (*pr.exit), + string ("process ") + pp.recall_string () + ' ' + to_string (*pr.exit), move (pr.exit)); } catch (const process_error& e) |