Skip to content

Commit 13d56eb

Browse files
authored
Merge pull request #18537 from slavapestov/unused-variables
Sema: Fix two unused variable warnings
2 parents b9499d7 + 528c632 commit 13d56eb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/Sema/CSApply.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6276,9 +6276,6 @@ void ExprRewriter::peepholeDictionaryUpcast(DictionaryExpr *expr,
62766276
// the expr type as well.
62776277
expr->setType(toType);
62786278

6279-
ConstraintLocatorBuilder keyLocator =
6280-
locator.withPathElement(
6281-
ConstraintLocator::PathElement::getGenericArgument(0));
62826279
ConstraintLocatorBuilder valueLocator =
62836280
locator.withPathElement(
62846281
ConstraintLocator::PathElement::getGenericArgument(1));

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3996,7 +3996,7 @@ void swift::useObjectiveCBridgeableConformances(DeclContext *dc, Type type) {
39963996
if (!hashableProto)
39973997
return Action::Stop;
39983998

3999-
auto result = tc.conformsToProtocol(
3999+
(void)tc.conformsToProtocol(
40004000
keyType, hashableProto, DC, options,
40014001
/*ComplainLoc=*/SourceLoc());
40024002
}

0 commit comments

Comments
 (0)