Skip to content

Commit de5f9fa

Browse files
authored
[NFCI] Fix Wattributes warnings from Sema. (#157906)
See: #157834 There is some visibility concerns here, so this patch suppresses the diagnostic. I believe we are doing this intentionally, so unless someone comes up with a good reason we should either remove the visibility of Sema, or make these types visible, this seems like the right way forward. Fixes: #157834
1 parent 35b141f commit de5f9fa

File tree

1 file changed

+7
-0
lines changed
  • clang/include/clang/Sema

1 file changed

+7
-0
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,16 @@ enum AttrName { Target, TargetClones, TargetVersion };
845845

846846
void inferNoReturnAttr(Sema &S, const Decl *D);
847847

848+
#ifdef __GNUC__
849+
#pragma GCC diagnostic push
850+
#pragma GCC diagnostic ignored "-Wattributes"
851+
#endif
848852
/// Sema - This implements semantic analysis and AST building for C.
849853
/// \nosubgrouping
850854
class Sema final : public SemaBase {
855+
#ifdef __GNUC__
856+
#pragma GCC diagnostic pop
857+
#endif
851858
// Table of Contents
852859
// -----------------
853860
// 1. Semantic Analysis (Sema.cpp)

0 commit comments

Comments
 (0)