From: Reid Kleckner Date: Fri, 18 Apr 2014 01:21:55 +0000 (+0000) Subject: Fix a -Wmicrosoft warning on an unrepresentable enum X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b56be34317460c462f3c9b9b84d0286ca784506b;p=clang Fix a -Wmicrosoft warning on an unrepresentable enum 0x80000000 isn't representable as an int, which is the default enum type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206545 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 0b1cae1877..778d839ba4 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -7083,13 +7083,13 @@ public: PSK_CodeSeg, }; - enum PragmaSectionFlag { + enum PragmaSectionFlag : unsigned { PSF_None = 0, PSF_Read = 0x1, PSF_Write = 0x2, PSF_Execute = 0x4, PSF_Implicit = 0x8, - PSF_Invalid = 0x80000000, + PSF_Invalid = 0x80000000U, }; struct SectionInfo {