aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-09 07:00:51 -0600
committerQyriad <qyriad@qyriad.me>2024-05-09 07:08:44 -0600
commit1f9b0fba2304a24591dec6fe9b9623f147649d57 (patch)
tree76caf9d14e19f625d63f1e7e7a33e23c452686f8
parent2bbe3efd169534f538184ff788eecb398ead70a4 (diff)
add and fix -Wignored-qualifiers
Change-Id: I4bffa766ae04dd80355f9b8c10e59700e4b406da
-rw-r--r--meson.build1
-rw-r--r--src/libfetchers/tarball.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index e90bf213b..5885905c5 100644
--- a/meson.build
+++ b/meson.build
@@ -406,6 +406,7 @@ add_project_arguments(
'-Werror=switch',
'-Werror=switch-enum',
'-Wdeprecated-copy',
+ '-Wignored-qualifiers',
# Enable assertions in libstdc++ by default. Harmless on libc++. Benchmarked
# at ~1% overhead in `nix search`.
#
diff --git a/src/libfetchers/tarball.cc b/src/libfetchers/tarball.cc
index 68cb0ca40..cda6b7acb 100644
--- a/src/libfetchers/tarball.cc
+++ b/src/libfetchers/tarball.cc
@@ -186,7 +186,7 @@ struct CurlInputScheme : InputScheme
virtual const std::string inputType() const = 0;
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")
|| path.ends_with(".tgz") || path.ends_with(".tar.gz")