Skip to content

Commit b3fabf1

Browse files
committed
Reenable and fix warning 4499 - explicit specialization cannot have a storage class (ignored)
1 parent db7248b commit b3fabf1

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

Build/Chakra.Build.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
4456; <!-- declaration of '' hides previous local declaration -->
3131
4457; <!-- declaration of '' hides function parameter -->
3232
4458; <!-- declaration of '' hides class member -->
33-
4838; <!-- conversion from 'unsigned int' to 'int requires a narrowing conversion -->
34-
4499; <!-- explicit specialization cannot have a storage class (ignored) -->
33+
4838; <!-- conversion from 'unsigned int' to 'int requires a narrowing conversion -->
3534
4463; <!-- overflow; assigning 1 to bit-field that can only hold values from -1 to 0 -->
3635
4311; <!-- 'type cast': pointer truncation from '' to '' -->
3736
4312; <!-- 'type cast': conversion from '' to '' of greater size -->

lib/Backend/Lower.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,17 +3695,17 @@ Lowerer::GenerateArrayInfoIsNativeFloatAndNotIntArrayTest(IR::Instr *instr, Js::
36953695
template <typename ArrayType>
36963696
static IR::JnHelperMethod GetArrayAllocMemHelper();
36973697
template <>
3698-
static IR::JnHelperMethod GetArrayAllocMemHelper<Js::JavascriptArray>()
3698+
IR::JnHelperMethod GetArrayAllocMemHelper<Js::JavascriptArray>()
36993699
{
37003700
return IR::HelperAllocMemForJavascriptArray;
37013701
}
37023702
template <>
3703-
static IR::JnHelperMethod GetArrayAllocMemHelper<Js::JavascriptNativeIntArray>()
3703+
IR::JnHelperMethod GetArrayAllocMemHelper<Js::JavascriptNativeIntArray>()
37043704
{
37053705
return IR::HelperAllocMemForJavascriptNativeIntArray;
37063706
}
37073707
template <>
3708-
static IR::JnHelperMethod GetArrayAllocMemHelper<Js::JavascriptNativeFloatArray>()
3708+
IR::JnHelperMethod GetArrayAllocMemHelper<Js::JavascriptNativeFloatArray>()
37093709
{
37103710
return IR::HelperAllocMemForJavascriptNativeFloatArray;
37113711
}

lib/Common/Memory/Recycler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3871,10 +3871,10 @@ Recycler::IsReentrantState() const
38713871

38723872
#ifdef ENABLE_JS_ETW
38733873
template <Js::Phase phase> static ETWEventGCActivationKind GetETWEventGCActivationKind();
3874-
template <> static ETWEventGCActivationKind GetETWEventGCActivationKind<Js::GarbageCollectPhase>() { return ETWEvent_GarbageCollect; }
3875-
template <> static ETWEventGCActivationKind GetETWEventGCActivationKind<Js::ThreadCollectPhase>() { return ETWEvent_ThreadCollect; }
3876-
template <> static ETWEventGCActivationKind GetETWEventGCActivationKind<Js::ConcurrentCollectPhase>() { return ETWEvent_ConcurrentCollect; }
3877-
template <> static ETWEventGCActivationKind GetETWEventGCActivationKind<Js::PartialCollectPhase>() { return ETWEvent_PartialCollect; }
3874+
template <> ETWEventGCActivationKind GetETWEventGCActivationKind<Js::GarbageCollectPhase>() { return ETWEvent_GarbageCollect; }
3875+
template <> ETWEventGCActivationKind GetETWEventGCActivationKind<Js::ThreadCollectPhase>() { return ETWEvent_ThreadCollect; }
3876+
template <> ETWEventGCActivationKind GetETWEventGCActivationKind<Js::ConcurrentCollectPhase>() { return ETWEvent_ConcurrentCollect; }
3877+
template <> ETWEventGCActivationKind GetETWEventGCActivationKind<Js::PartialCollectPhase>() { return ETWEvent_PartialCollect; }
38783878
#endif
38793879

38803880
template <Js::Phase phase>

lib/Parser/TextbookBoyerMoore.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ namespace UnifiedRegex
146146
static bool MatchPatternAt(uint inputChar, char16 const * pat, CharCount index);
147147

148148
template <>
149-
static bool MatchPatternAt<1, 1>(uint inputChar, char16 const* pat, CharCount index)
149+
bool MatchPatternAt<1, 1>(uint inputChar, char16 const* pat, CharCount index)
150150
{
151151
return inputChar == pat[index];
152152
}
153153

154154
template <>
155-
static bool MatchPatternAt<CaseInsensitive::EquivClassSize, CaseInsensitive::EquivClassSize>(uint inputChar, char16 const * pat, CharCount index)
155+
bool MatchPatternAt<CaseInsensitive::EquivClassSize, CaseInsensitive::EquivClassSize>(uint inputChar, char16 const * pat, CharCount index)
156156
{
157157
CompileAssert(CaseInsensitive::EquivClassSize == 4);
158158
return inputChar == pat[index * CaseInsensitive::EquivClassSize]
@@ -162,7 +162,7 @@ namespace UnifiedRegex
162162
}
163163

164164
template <>
165-
static bool MatchPatternAt<CaseInsensitive::EquivClassSize, 1>(uint inputChar, char16 const * pat, CharCount index)
165+
bool MatchPatternAt<CaseInsensitive::EquivClassSize, 1>(uint inputChar, char16 const * pat, CharCount index)
166166
{
167167
CompileAssert(CaseInsensitive::EquivClassSize == 4);
168168
return inputChar == pat[index * 4];

0 commit comments

Comments
 (0)