add and fix -Wignored-qualifiers

Change-Id: I4bffa766ae04dd80355f9b8c10e59700e4b406da
This commit is contained in:
Qyriad 2024-05-09 07:00:51 -06:00
parent 2bbe3efd16
commit 1f9b0fba23
2 changed files with 2 additions and 1 deletions

View file

@ -406,6 +406,7 @@ add_project_arguments(
'-Werror=switch', '-Werror=switch',
'-Werror=switch-enum', '-Werror=switch-enum',
'-Wdeprecated-copy', '-Wdeprecated-copy',
'-Wignored-qualifiers',
# Enable assertions in libstdc++ by default. Harmless on libc++. Benchmarked # Enable assertions in libstdc++ by default. Harmless on libc++. Benchmarked
# at ~1% overhead in `nix search`. # at ~1% overhead in `nix search`.
# #

View file

@ -186,7 +186,7 @@ struct CurlInputScheme : InputScheme
virtual const std::string inputType() const = 0; virtual const std::string inputType() const = 0;
const std::set<std::string> transportUrlSchemes = {"file", "http", "https"}; const std::set<std::string> transportUrlSchemes = {"file", "http", "https"};
const bool hasTarballExtension(std::string_view path) const bool hasTarballExtension(std::string_view path) const
{ {
return path.ends_with(".zip") || path.ends_with(".tar") return path.ends_with(".zip") || path.ends_with(".tar")
|| path.ends_with(".tgz") || path.ends_with(".tar.gz") || path.ends_with(".tgz") || path.ends_with(".tar.gz")