Fix prefast scan bug 8995 (#14077)

### Description
Prefast warning fix


### Motivation and Context
https://dev.azure.com/aiinfra/ONNX%20Runtime/_workitems/edit/8995/

Co-authored-by: Chen Fu <fuchen@microsoft.com>
This commit is contained in:
Chen Fu 2022-12-28 10:38:36 -08:00 committed by GitHub
parent 0c3480e565
commit a79d88ed7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,10 @@ void BuildMatMulIntegerToFloatGraph(ModelTestBuilder& helper,
helper.SetGraphOutputs();
}
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 6262)
#endif
TEST(CPU_U8S8_Precision_Tests, MatMulIntegerToFloat) {
std::unordered_map<std::string, int> domain_to_version;
domain_to_version[kOnnxDomain] = 12;
@ -169,6 +173,9 @@ TEST(CPU_U8S8_Precision_Tests, MatMulIntegerToFloat) {
EXPECT_EQ(ret.first, COMPARE_RESULT::SUCCESS) << ret.second;
}
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
template <typename WeightType>
void BuildDynamicQuantizeMatMulGraph(