diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 16:14:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-27 16:14:24 +0200 |
commit | 5d2f40dbca1ed021eb4586c8f3f5578825e82c57 (patch) | |
tree | 0947649b6732e977873816abb494d19cb985c344 /libbbot/manifest.cxx | |
parent | 9bcf79911d645e7ddcd771826a90e9f7dfd55896 (diff) |
Suppress (potential) bogus GCC 12 -Wrestrict warnings
Diffstat (limited to 'libbbot/manifest.cxx')
-rw-r--r-- | libbbot/manifest.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbbot/manifest.cxx b/libbbot/manifest.cxx index 3f07091..5b9de22 100644 --- a/libbbot/manifest.cxx +++ b/libbbot/manifest.cxx @@ -64,7 +64,7 @@ namespace bbot else if (s == "error") return result_status::error; else if (s == "abort") return result_status::abort; else if (s == "abnormal") return result_status::abnormal; - else throw invalid_argument ("invalid result status '" + s + "'"); + else throw invalid_argument ("invalid result status '" + s + '\''); } // interactive_mode @@ -89,7 +89,7 @@ namespace bbot if (s == "false") return interactive_mode::false_; else if (s == "true") return interactive_mode::true_; else if (s == "both") return interactive_mode::both; - else throw invalid_argument ("invalid interactive mode '" + s + "'"); + else throw invalid_argument ("invalid interactive mode '" + s + '\''); } // Utility functions @@ -332,7 +332,7 @@ namespace bbot catch (const invalid_argument&) { bad_value ( - string ("invalid task request interactive mode '" + v + "'")); + string ("invalid task request interactive mode '" + v + '\'')); } } else if (n == "interactive-login") @@ -595,7 +595,7 @@ namespace bbot } catch (const invalid_argument&) { - bad_value ("invalid task repository type '" + v + "'"); + bad_value ("invalid task repository type '" + v + '\''); } } else if (n == "trust") @@ -685,7 +685,7 @@ namespace bbot else if (v == "false") host = false; else - bad_value ("invalid task host value '" + v + "'"); + bad_value ("invalid task host value '" + v + '\''); } else if (n == "warning-regex") { |