parent
246e85ddb0
commit
3d8edc24c7
|
@ -1166,9 +1166,9 @@ void Sema::MarkUnusedFileScopedDecl(const DeclaratorDecl *D) {
|
|||
return; // First should already be in the vector.
|
||||
}
|
||||
|
||||
if (ShouldWarnIfUnusedFileScopedDecl(D))
|
||||
UnusedFileScopedDecls.push_back(D);
|
||||
}
|
||||
if (ShouldWarnIfUnusedFileScopedDecl(D))
|
||||
UnusedFileScopedDecls.push_back(D);
|
||||
}
|
||||
|
||||
static bool ShouldDiagnoseUnusedDecl(const NamedDecl *D) {
|
||||
if (D->isInvalidDecl())
|
||||
|
|
Loading…
Reference in New Issue