Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
taks committed Nov 18, 2023
1 parent 41905fd commit df97790
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ble_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl BLEDevice {
self._set_own_addr_type(OwnAddrType::Random, true);
}

#[allow(unused_variables)]
fn _set_own_addr_type(&mut self, own_addr_type: OwnAddrType, use_nrpa: bool) {
unsafe {
OWN_ADDR_TYPE = own_addr_type;
Expand Down
4 changes: 4 additions & 0 deletions src/utilities/os_mbuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use core::ffi::c_int;
use esp_idf_sys::os_mbuf;

/// Allocate a packet header structure from the MSYS pool. See os_msys_register() for a description of MSYS.
#[inline]
#[allow(unused)]
pub(crate) fn os_msys_get_pkthdr(dsize: u16, user_hdr_len: u16) -> *mut os_mbuf {
#[cfg(not(esp_idf_soc_esp_nimble_controller))]
unsafe {
Expand All @@ -15,6 +17,8 @@ pub(crate) fn os_msys_get_pkthdr(dsize: u16, user_hdr_len: u16) -> *mut os_mbuf
}

/// Append data onto a mbuf
#[inline]
#[allow(unused)]
pub(crate) fn os_mbuf_append(m: *mut os_mbuf, data: &[u8]) -> c_int {
#[cfg(not(esp_idf_soc_esp_nimble_controller))]
unsafe {
Expand Down

0 comments on commit df97790

Please sign in to comment.