From c3c0af36bac3d71f61dd758585ab307892545de4 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 10 Dec 2010 15:40:48 +0000 Subject: [PATCH] Silence GCC warning about comparisons between enumerators of different types git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121486 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index d041a405e2..be23abd095 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -3464,7 +3464,7 @@ inline void QualType::removeLocalVolatile() { inline void QualType::removeLocalCVRQualifiers(unsigned Mask) { assert(!(Mask & ~Qualifiers::CVRMask) && "mask has non-CVR bits"); - assert(Qualifiers::CVRMask == Qualifiers::FastMask); + assert((int)Qualifiers::CVRMask == (int)Qualifiers::FastMask); // Fast path: we don't need to touch the slow qualifiers. removeLocalFastQualifiers(Mask); -- 2.40.0