File tree Expand file tree Collapse file tree 6 files changed +24
-2
lines changed Expand file tree Collapse file tree 6 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 21
21
#include " xmlreader.h"
22
22
#include " rlfeint.h"
23
23
24
+ // Note that some of these look pretty bad, and are; this is a test host, so
25
+ // we're not as concerned here.
24
26
#pragma warning(disable:4127) // expression is constant, e.g., while(TRUE)
27
+ #pragma warning(disable:6001) // using uninitialized memory
28
+ #pragma warning(disable:6011) // dereferencing null pointer, potentially
29
+ #pragma warning(disable:6031) // ignoring return value from some system calls
30
+ #pragma warning(disable:6054) // string may not be zero-terminated
31
+ #pragma warning(disable:6271) // Extra parameter not used by format string
32
+ #pragma warning(disable:6262) // Function using too much stack for analyzer to look at it
33
+ #pragma warning(disable:6335) // leaking process information handle
34
+ #pragma warning(disable:6386) // Potential buffer overrun
35
+ #pragma warning(disable:6387) // Potential misadherance to specification of library functions
36
+ #pragma warning(disable:26439) // implicit noexcept
37
+ #pragma warning(disable:26451) // Arithmetic on smaller type before widening conversion
38
+ #pragma warning(disable:26495) // uninitialized member
39
+ #pragma warning(disable:28193) // ignoring value that must be examined
25
40
26
41
#define LOCAL static
27
42
typedef __int32 int32;
Original file line number Diff line number Diff line change 15
15
namespace Xml
16
16
{
17
17
18
+ #pragma prefast(disable:26439) // implicit noexcept
19
+ #pragma prefast(disable:26495) // uninitialized member variable
18
20
19
21
// May want Unicode someday.
20
22
Original file line number Diff line number Diff line change 17
17
#pragma warning(push)
18
18
19
19
#pragma warning(disable: 4127) // constant expression for template parameter
20
+ #pragma warning(disable: 26451) // size-conversion/arithmetic-operation ordering
20
21
#endif
21
22
22
23
namespace utf8
Original file line number Diff line number Diff line change @@ -1149,7 +1149,7 @@ namespace Js
1149
1149
FunctionBody::SetOutParamMaxDepth (RegSlot cOutParamsDepth)
1150
1150
{
1151
1151
#if _M_X64
1152
- const RegSlot minAsmJsOutParams = MinAsmJsOutParams ();
1152
+ constexpr RegSlot minAsmJsOutParams = MinAsmJsOutParams ();
1153
1153
if (GetIsAsmJsFunction () && cOutParamsDepth < minAsmJsOutParams)
1154
1154
{
1155
1155
cOutParamsDepth = minAsmJsOutParams;
@@ -9579,4 +9579,4 @@ namespace Js
9579
9579
// Don't grow these data structure unless absolutely necessary
9580
9580
CompileAssert (sizeof (Js::EntryPointInfo) <= 56);
9581
9581
CompileAssert (sizeof (Js::FunctionEntryPointInfo) <= 96);
9582
- #endif
9582
+ #endif
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ namespace Js
12
12
#else
13
13
#define DB_NOINLINE
14
14
#endif
15
+ #pragma prefast(push)
16
+ #pragma prefast(disable:26450) // PREfast takes issue with how INT_MIN is defined
15
17
16
18
// Double
17
19
template <> DB_NOINLINE double AsmJsMath::DivChecked<double >(double aLeft, double aRight) { return aLeft / aRight; }
@@ -93,3 +95,4 @@ namespace Js
93
95
}
94
96
template <> bool AsmJsMath::RemWouldTrap (uint64 aLeft, uint64 aRight) { return aRight == 0 || (aLeft == LONGLONG_MIN && aRight == -1 ); }
95
97
}
98
+ #pragma prefast(pop
Original file line number Diff line number Diff line change @@ -1279,6 +1279,7 @@ LEBType WasmBinaryReader::LEB128(uint32 &length)
1279
1279
1280
1280
if (sign && (shift < (sizeof (LEBType) * 8 )) && (0x40 & b))
1281
1281
{
1282
+ #pragma prefast(suppress:26453)
1282
1283
result |= ((~(LEBType)0 ) << shift);
1283
1284
}
1284
1285
return result;
You can’t perform that action at this time.
0 commit comments