Skip to content

Commit 2dd0433

Browse files
committed
[clang] Remove some warnings
1 parent 67ff0fa commit 2dd0433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5267,7 +5267,7 @@ Decl *Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS,
52675267
if (Enum->enumerator_begin() == Enum->enumerator_end() &&
52685268
!Enum->getIdentifier() && !Enum->isInvalidDecl())
52695269
DeclaresAnything = false;
5270-
5270+
#ifndef _WIN32
52715271
if (!DS.isMissingDeclaratorOk()) {
52725272
// Customize diagnostic for a typedef missing a name.
52735273
if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef)
@@ -5276,7 +5276,7 @@ Decl *Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS,
52765276
else
52775277
DeclaresAnything = false;
52785278
}
5279-
5279+
#endif
52805280
if (DS.isModulePrivateSpecified() &&
52815281
Tag && Tag->getDeclContext()->isFunctionOrMethod())
52825282
Diag(DS.getModulePrivateSpecLoc(), diag::err_module_private_local_class)

0 commit comments

Comments
 (0)