Skip to content

Commit

Permalink
fix clang-15 error "capture_does_not_name_variable" (EVerest#104)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik K <dominik@pionix.de>
  • Loading branch information
Dominik-K authored and hikinggrass committed Oct 16, 2023
1 parent bf6815c commit 3b09bea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
target
watcher.lua
workspace.yaml

# Clang
.cache/
2 changes: 1 addition & 1 deletion lib/everest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ void Everest::telemetry_publish(const std::string& category, const std::string&

for (auto&& [key, entry] : telemetry) {
if (std::any_of(TELEMETRY_RESERVED_KEYS.begin(), TELEMETRY_RESERVED_KEYS.end(),
[&key](const auto& element) { return element == key; })) {
[&key_ = key](const auto& element) { return element == key_; })) {
EVLOG_warning << "Telemetry key " << key << " is reserved and will be overwritten.";
} else {
json data;
Expand Down

0 comments on commit 3b09bea

Please sign in to comment.