diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 16:25:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 16:25:42 +0200 |
commit | ceaad6480139e3c68af2e3d2dbe78588fcdc034f (patch) | |
tree | f741dd4506252d97edc4a6250b7db4abfd3cb7fa /bpkg/package.cxx | |
parent | a97b12a027546b37f66d3e08064f92f5539cf79e (diff) |
Suppress (potential) bogus GCC 12 -Wrestrict warnings
Diffstat (limited to 'bpkg/package.cxx')
-rw-r--r-- | bpkg/package.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bpkg/package.cxx b/bpkg/package.cxx index 6cd555e..fe04248 100644 --- a/bpkg/package.cxx +++ b/bpkg/package.cxx @@ -211,7 +211,7 @@ namespace bpkg // Quote the result as it contains the space character. // - return "'" + name.string () + ' ' + constraint->string () + "'"; + return '\'' + name.string () + ' ' + constraint->string () + '\''; } // selected_package @@ -279,7 +279,7 @@ namespace bpkg if (s == "user") return config_source::user; else if (s == "dependent") return config_source::dependent; else if (s == "reflect") return config_source::reflect; - else throw invalid_argument ("invalid config source '" + s + "'"); + else throw invalid_argument ("invalid config source '" + s + '\''); } shared_ptr<available_package> @@ -464,7 +464,7 @@ namespace bpkg else if (s == "fetched") return package_state::fetched; else if (s == "unpacked") return package_state::unpacked; else if (s == "configured") return package_state::configured; - else throw invalid_argument ("invalid package state '" + s + "'"); + else throw invalid_argument ("invalid package state '" + s + '\''); } // substate @@ -486,7 +486,7 @@ namespace bpkg { if (s == "none") return package_substate::none; else if (s == "system") return package_substate::system; - else throw invalid_argument ("invalid package substate '" + s + "'"); + else throw invalid_argument ("invalid package substate '" + s + '\''); } // certificate |