Skip to content

Commit

Permalink
Fix compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nbigaouette committed Oct 17, 2020
1 parent 1d92ec2 commit 62b41d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions onnxruntime-sys/examples/c_api_sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ fn main() {
.collect();
let output_node_names_ptr_ptr: *const *const i8 = output_node_names_ptr.as_ptr();

let input_node_names_cstring =
let _input_node_names_cstring =
unsafe { std::ffi::CString::from_raw(input_node_names_ptr[0] as *mut i8) };
let run_options_ptr: *const OrtRunOptions = std::ptr::null();
let mut output_tensor_ptr: *mut OrtValue = std::ptr::null_mut();
let mut output_tensor_ptr_ptr: *mut *mut OrtValue = &mut output_tensor_ptr;
let output_tensor_ptr_ptr: *mut *mut OrtValue = &mut output_tensor_ptr;

let status = unsafe {
g_ort.as_ref().unwrap().Run.unwrap()(
Expand Down
3 changes: 1 addition & 2 deletions onnxruntime/examples/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
use ndarray::Array;

use onnxruntime::{
download::vision::ImageClassification, environment::Environment, tensor::OrtOwnedTensor,
GraphOptimizationLevel, LoggingLevel,
environment::Environment, tensor::OrtOwnedTensor, GraphOptimizationLevel, LoggingLevel,
};
use tracing::Level;
use tracing_subscriber::FmtSubscriber;
Expand Down

0 comments on commit 62b41d4

Please sign in to comment.