Skip to content

Commit

Permalink
Fix several C5038 warnings (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline75489 committed Jun 20, 2024
1 parent bef5f07 commit 58b5523
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ort_c_to_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ struct BaseKernel {
OrtErrorCode GetErrorCodeAndRelease(OrtStatusPtr status) const noexcept;

const OrtApi& api_;
OrtW::CustomOpApi ort_;
const OrtKernelInfo& info_;
OrtW::CustomOpApi ort_;
};

// Deprecated: Use OrtW::CustomOpApi::KernelInfoGetAttribute instead
Expand Down
2 changes: 1 addition & 1 deletion shared/api/image_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ OrtxStatus ImageProcessor::Init(std::string_view processor_def) {
}

ImageProcessor::ImageProcessor()
: allocator_(&CppAllocator::Instance()), OrtxObjectImpl(kOrtxKindProcessor) {
: OrtxObjectImpl(kOrtxKindProcessor), allocator_(&CppAllocator::Instance()) {
}

template <typename T>
Expand Down
2 changes: 1 addition & 1 deletion shared/api/runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ class OrtxRunner {
}

private:
std::vector<Operation*> ops_;
ortc::IAllocator* allocator_;
std::vector<Operation*> ops_;
};

} // namespace ort_extensions

0 comments on commit 58b5523

Please sign in to comment.