"Lambda capture is not used" build failure(s) — clang 12.0.1

No error detected for version 12.0.1