From 175480f6a8492473cdaeaeb98e9e785538579952 Mon Sep 17 00:00:00 2001 From: Sewer56 Date: Mon, 24 Jun 2024 00:06:29 +0100 Subject: [PATCH] Fixed: macOS Build with Enabled Warnings --- src-rust/src/c/buffers_c_buffers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-rust/src/c/buffers_c_buffers.rs b/src-rust/src/c/buffers_c_buffers.rs index ac7c642..190fd95 100644 --- a/src-rust/src/c/buffers_c_buffers.rs +++ b/src-rust/src/c/buffers_c_buffers.rs @@ -333,9 +333,9 @@ pub extern "C" fn overwrite_allocated_code_ex( #[cfg(test)] mod tests { - use crate::c::buffers_c_buffers::{ - buffers_allocate_private_memory, buffers_get_buffer, buffersearchsettings_from_proximity, - }; + #[cfg(not(target_os = "macos"))] + use crate::c::buffers_c_buffers::buffersearchsettings_from_proximity; + use crate::c::buffers_c_buffers::{buffers_allocate_private_memory, buffers_get_buffer}; use crate::c::buffers_c_buffers::{free_allocation_result, free_get_buffer_result}; use crate::c::buffers_c_locatoritem::{ locatoritem_append_bytes, locatoritem_bytes_left, locatoritem_min_address,