Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several C5038 warnings #748

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading