forked from lix-project/lix
add and fix -Wignored-qualifiers
Change-Id: I4bffa766ae04dd80355f9b8c10e59700e4b406da
This commit is contained in:
parent
2bbe3efd16
commit
1f9b0fba23
|
@ -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`.
|
||||||
#
|
#
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue