mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
gardening: make c++98-compat-extra-semi an error
This cleans up 90 instances of this warning and reduces the build spew when building on Linux. This helps identify actual issues when building which can get lost in the stream of warning messages. It also helps restore the ability to build the compiler with gcc.
This commit is contained in:
@@ -378,7 +378,7 @@ static bool printModuleInterfaceDecl(Decl *D,
|
||||
/// Sorts import declarations for display.
|
||||
static bool compareImports(ImportDecl *LHS, ImportDecl *RHS) {
|
||||
return LHS->getImportPath() < RHS->getImportPath();
|
||||
};
|
||||
}
|
||||
|
||||
/// Sorts Swift declarations for display.
|
||||
static bool compareSwiftDecls(Decl *LHS, Decl *RHS) {
|
||||
@@ -393,7 +393,7 @@ static bool compareSwiftDecls(Decl *LHS, Decl *RHS) {
|
||||
// FIXME: not sufficient to establish a total order for overloaded decls.
|
||||
}
|
||||
return LHS->getKind() < RHS->getKind();
|
||||
};
|
||||
}
|
||||
|
||||
static std::pair<ArrayRef<Decl*>, ArrayRef<Decl*>>
|
||||
getDeclsFromCrossImportOverlay(ModuleDecl *Overlay, ModuleDecl *Declaring,
|
||||
|
||||
Reference in New Issue
Block a user