Skip to content

Silenced compiler warnings #82284

Silenced compiler warnings

Silenced compiler warnings #82284

Triggered via pull request November 8, 2024 16:28
Status Cancelled
Total duration 23m 53s
Artifacts

clang-tidy.yml

on: pull_request
skip-duplicates
7s
skip-duplicates
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

4 errors
build (src)
Canceling since a higher priority waiting request for 'clang-tidy-build-77675' exists
build (src): src/newcharacter.cpp#L2378
the type of the loop variable 'spell_pair' is different from the one returned by the iterator and generates an implicit conversion; you can either change the type to the matching one ('const std::pair<const string_id<spell_type>, int> &' but 'const auto&' is always a valid option) or remove the reference to make it explicit that you are creating a new value [performance-implicit-conversion-in-loop,-warnings-as-errors]
build (src): src/newcharacter.cpp#L2378
loop variable 'spell_pair' of type 'const std::pair<spell_id, int> &' (aka 'const pair<string_id<spell_type>, int> &') binds to a temporary constructed from type 'reference' (aka 'std::pair<const string_id<spell_type>, int> &') [clang-diagnostic-range-loop-construct,-warnings-as-errors]
build (src)
The operation was canceled.