diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-11-22 14:07:42 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-11-22 14:07:42 +0000 |
| commit | b3c8a3cbb0f51d9cf704ca6a1c050fb50a0fb22d (patch) | |
| tree | bb6f4b311745f5334d95e0d36c7a2f85384f0ee2 /apt-pkg/sourcelist.cc | |
| parent | dcb81196776f5c31063e5f57104b4b021f37aa00 (diff) | |
| parent | 8c760266c8c736bff62055c008ab74d78f3ed82a (diff) | |
Merge branch 'fix/warnings' into 'main'
Fix a small bunch of compile-time warnings
See merge request apt-team/apt!404
Diffstat (limited to 'apt-pkg/sourcelist.cc')
| -rw-r--r-- | apt-pkg/sourcelist.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc index 65412b458..819344281 100644 --- a/apt-pkg/sourcelist.cc +++ b/apt-pkg/sourcelist.cc @@ -614,7 +614,7 @@ bool pkgSourceList::AddVolatileFile(std::string const &File) /*}}}*/ void pkgSourceList::AddVolatileFiles(CommandLine &CmdL, std::vector<std::string> * const VolatileCmdL)/*{{{*/ { - std::remove_if(CmdL.FileList + 1, CmdL.FileList + 1 + CmdL.FileSize(), [&](char const * const I) { + (void)std::remove_if(CmdL.FileList + 1, CmdL.FileList + 1 + CmdL.FileSize(), [&](char const * const I) { if (I != nullptr && (I[0] == '/' || (I[0] == '.' && (I[1] == '\0' || (I[1] == '.' && (I[2] == '\0' || I[2] == '/')) || I[1] == '/')))) { if (AddVolatileFile(I, VolatileCmdL)) |
