Skip to content

Commit ab06ff1

Browse files
authored
Merge pull request #6468 from slavapestov/fix-warnings
Fix warnings
2 parents 6805ecc + f19d6b9 commit ab06ff1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/SILOptimizer/IPO/DeadFunctionElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ class ExternalFunctionDefinitionsElimination : FunctionLivenessComputation {
475475

476476
// Check witness methods.
477477
for (SILWitnessTable &WT : Module->getWitnessTableList()) {
478-
bool tableIsAlive = isVisibleExternally(WT.getConformance()->getProtocol());
478+
isVisibleExternally(WT.getConformance()->getProtocol());
479479
for (const SILWitnessTable::Entry &entry : WT.getEntries()) {
480480
if (entry.getKind() != SILWitnessTable::Method)
481481
continue;

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ static void checkTypeAccessibility(
15731573
DowngradeToWarning)> diagnose) {
15741574
const DeclContext *DC = context->getDeclContext();
15751575
bool isParam = false;
1576-
if (auto *param = dyn_cast<ParamDecl>(context)) {
1576+
if (isa<ParamDecl>(context)) {
15771577
isParam = true;
15781578
context = dyn_cast<AbstractFunctionDecl>(DC);
15791579
if (!context)

0 commit comments

Comments
 (0)