mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Suppress warnings for gemmlowp
This commit is contained in:
parent
95b8941e9d
commit
d23f01dcd9
3 changed files with 22 additions and 2 deletions
|
|
@ -364,6 +364,8 @@ else()
|
|||
check_cxx_compiler_flag(-Wtautological-pointer-compare HAS_TAUTOLOGICAL_POINTER_COMPARE)
|
||||
check_cxx_compiler_flag(-Wcatch-value HAS_CATCH_VALUE)
|
||||
check_cxx_compiler_flag(-Wmissing-braces HAS_MISSING_BRACES)
|
||||
check_cxx_compiler_flag(-Wignored-attributes HAS_IGNORED_ATTRIBUTES)
|
||||
|
||||
if(HAS_TAUTOLOGICAL_POINTER_COMPARE)
|
||||
#we may have extra null pointer checkings in debug build, it's not an issue
|
||||
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -Wno-tautological-pointer-compare")
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@
|
|||
#cmakedefine HAS_PARENTHESES
|
||||
#cmakedefine HAS_NULL_DEREFERENCE
|
||||
#cmakedefine HAS_USELESS_CAST
|
||||
|
||||
#cmakedefine HAS_IGNORED_ATTRIBUTES
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,26 @@
|
|||
#include "core/providers/cpu/nn/conv_integer.h"
|
||||
#include "core/util/math.h"
|
||||
#include "core/util/math_cpuonly.h"
|
||||
#include "onnxruntime_config.h"
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#ifdef HAS_IGNORED_ATTRIBUTES
|
||||
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||
#endif
|
||||
#else
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4100) //'identifier' : unreferenced formal parameter
|
||||
#endif
|
||||
|
||||
#include "public/gemmlowp.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#else
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace contrib {
|
||||
Status ConvInteger::Compute(OpKernelContext* context) const {
|
||||
|
|
@ -146,5 +164,5 @@ ONNX_OPERATOR_KERNEL_EX(
|
|||
.TypeConstraint("T2", DataTypeImpl::GetTensorType<uint8_t>())
|
||||
.TypeConstraint("T3", DataTypeImpl::GetTensorType<int32_t>()),
|
||||
ConvInteger);
|
||||
}
|
||||
} // namespace contrib
|
||||
} // namespace onnxruntime
|
||||
|
|
|
|||
Loading…
Reference in a new issue