Skip to content

Commit 30bdce1

Browse files
committed
Fix warning messages
1 parent 3f58888 commit 30bdce1

File tree

6 files changed

+3
-11
lines changed

6 files changed

+3
-11
lines changed

src/arith/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ use std::ops::Neg;
1414
type Complex32 = Complex<f32>;
1515
type Complex64 = Complex<f64>;
1616
type MutAfArray = *mut self::libc::c_longlong;
17-
type MutDouble = *mut self::libc::c_double;
18-
type MutUint = *mut self::libc::c_uint;
1917
type AfArray = self::libc::c_longlong;
2018

2119
use std::ops::{Add, Sub, Div, Mul, BitAnd, BitOr, BitXor, Not, Rem, Shl, Shr};

src/array.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ use self::libc::{uint8_t, c_void, c_int, c_uint, c_longlong, c_char};
88
use std::ffi::CString;
99

1010
type MutAfArray = *mut self::libc::c_longlong;
11-
type MutDouble = *mut self::libc::c_double;
12-
type MutUint = *mut self::libc::c_uint;
1311
type AfArray = self::libc::c_longlong;
1412
type DimT = self::libc::c_longlong;
1513
type MutVoidPtr = *mut self::libc::c_ulonglong;
16-
type VoidPtr = self::libc::c_ulonglong;
1714

1815
// Some unused functions from array.h in C-API of ArrayFire
1916
// af_create_handle

src/data/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ use util::HasAfEnum;
1111
use std::vec::Vec;
1212

1313
type MutAfArray = *mut self::libc::c_longlong;
14-
type MutDouble = *mut self::libc::c_double;
15-
type MutUint = *mut self::libc::c_uint;
1614
type AfArray = self::libc::c_longlong;
1715
type DimT = self::libc::c_longlong;
1816
type Intl = self::libc::c_longlong;

src/device/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
extern crate libc;
22

3-
use defines::{AfError, DType};
3+
use defines::{AfError};
44
use error::HANDLE_ERROR;
5-
use self::libc::{c_int, size_t, c_char, c_void};
5+
use self::libc::{c_int, size_t, c_char};
66
use std::ffi::{CStr, CString};
77
use std::borrow::Cow;
88
use util::free_host;

src/random/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ use self::libc::{uint8_t, c_int, c_uint};
88
use util::HasAfEnum;
99

1010
type MutAfArray = *mut self::libc::c_longlong;
11-
type AfArray = self::libc::c_longlong;
1211
type MutRandEngine = *mut self::libc::c_longlong;
1312
type RandEngine = self::libc::c_longlong;
1413
type DimT = self::libc::c_longlong;
15-
type Intl = self::libc::c_longlong;
1614
type Uintl = self::libc::c_ulonglong;
1715

1816
#[allow(dead_code)]

src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub fn get_size(value: DType) -> usize {
3131
}
3232

3333
/// Allocates space using Arrayfire allocator in host memory
34+
#[allow(dead_code)]
3435
pub fn alloc_host<T>(elements: usize, _type: DType) -> *const T {
3536
let ptr: *const T = ::std::ptr::null();
3637
let bytes = (elements * get_size(_type)) as DimT;

0 commit comments

Comments
 (0)