[clang] cbb3104 - Suppress useless GCC "bitfield is too small to hold all values of enum class" warning.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 29 17:20:55 PDT 2019


Author: Richard Smith
Date: 2019-10-29T17:20:46-07:00
New Revision: cbb3104b1c8ea93b6749043184a8d8952b8b2747

URL: https://github.com/llvm/llvm-project/commit/cbb3104b1c8ea93b6749043184a8d8952b8b2747
DIFF: https://github.com/llvm/llvm-project/commit/cbb3104b1c8ea93b6749043184a8d8952b8b2747.diff

LOG: Suppress useless GCC "bitfield is too small to hold all values of enum class" warning.

Added: 
    

Modified: 
    clang/include/clang/Sema/Sema.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 88d21367006f..a505ab18d686 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -1238,7 +1238,7 @@ class Sema {
   llvm::SmallPtrSet<SpecialMemberDecl, 4> SpecialMembersBeingDeclared;
 
   /// Kinds of defaulted comparison operator functions.
-  enum class DefaultedComparisonKind {
+  enum class DefaultedComparisonKind : unsigned char {
     /// This is not a defaultable comparison operator.
     None,
     /// This is an operator== that should be implemented as a series of


        


More information about the cfe-commits mailing list