Skip to content

Commit 5ce1426

Browse files
committed
Fix some random compiler warnings
1 parent 83ccdbb commit 5ce1426

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/swift/AST/PrintOptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,12 @@ struct PrintOptions {
573573
QualifyNestedDeclarations::Never;
574574

575575
/// If true, we print a protocol's primary associated types using the
576-
/// primary associated type syntax: protocol Foo<Type1, ...>.
576+
/// primary associated type syntax: `protocol Foo<Type1, ...>`.
577577
///
578578
/// If false, we print them as ordinary associated types.
579579
bool PrintPrimaryAssociatedTypes = true;
580580

581-
/// Whether or not to print \c @attached(extension) attributes on
581+
/// Whether or not to print `@attached(extension)` attributes on
582582
/// macro declarations. This is used for feature suppression in
583583
/// Swift interface printing.
584584
bool PrintExtensionMacroAttributes = true;

lib/AST/Module.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ void SourceLookupCache::lookupVisibleDecls(ImportPath::Access AccessPath,
554554
SmallVector<MissingDecl *, 4> unexpandedDecls;
555555
for (auto &entry : TopLevelAuxiliaryDecls) {
556556
for (auto &decl : entry.second) {
557+
(void) decl;
557558
unexpandedDecls.append(entry.second.begin(), entry.second.end());
558559
}
559560
}

lib/ConstExtract/ConstExtract.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,6 @@ void writeParameterizedProtocolSameTypeRequirements(
815815
llvm::json::OStream &JSON,
816816
const ParameterizedProtocolType &ParameterizedProtoTy) {
817817
auto Protocol = ParameterizedProtoTy.getProtocol();
818-
auto ProtocolTy = ParameterizedProtoTy.getBaseType();
819818
auto Requirements = Protocol->getProtocolRequirements();
820819
auto ParameterTypeNames = Protocol->getPrimaryAssociatedTypeNames();
821820
auto ProtocolArguments = ParameterizedProtoTy.getArgs();

0 commit comments

Comments
 (0)