YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
Remove all the warnings from the code
Neptune53581c61d6b1
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rsindex 492a9c5df..4ba0096ac 100644--- a/screenpipe-audio/src/core.rs+++ b/screenpipe-audio/src/core.rs@@ -338,6 +338,8 @@ pub async fn list_audio_devices() -> Result<Vec<AudioDevice>> {}#[cfg(not(target_os = "macos"))]{+ // Avoid "unused variable" warning in non-macOS systems+ let _ = name;true}}diff --git a/screenpipe-core/src/ffmpeg.rs b/screenpipe-core/src/ffmpeg.rsindex 300425c53..882dc68e7 100644--- a/screenpipe-core/src/ffmpeg.rs+++ b/screenpipe-core/src/ffmpeg.rs@@ -2,18 +2,12 @@ use log::{debug, error};use std::path::PathBuf;use which::which;-#[cfg(windows)]-use std::os::windows::process::CommandExt;-#[cfg(not(windows))]const EXECUTABLE_NAME: &str = "ffmpeg";#[cfg(windows)]const EXECUTABLE_NAME: &str = "ffmpeg.exe";-#[cfg(windows)]-const CREATE_NO_WINDOW: u32 = 0x08000000;-pub fn find_ffmpeg_path() -> Option<PathBuf> {debug!("Starting search for ffmpeg executable");diff --git a/screenpipe-server/src/resource_monitor.rs b/screenpipe-server/src/resource_monitor.rsindex 0f6a4977a..f68d79d67 100644--- a/screenpipe-server/src/resource_monitor.rs+++ b/screenpipe-server/src/resource_monitor.rs@@ -8,12 +8,14 @@ use std::io::Read;use std::io::Seek;use std::io::SeekFrom;use std::io::Write;-use std::process::Command;use std::sync::Arc;use std::time::{Duration, Instant};use sysinfo::{PidExt, ProcessExt, System, SystemExt};use tracing::{error, info};+#[cfg(target_os = "macos")]+use std::process::Command;+pub struct ResourceMonitor {start_time: Instant,resource_log_file: Option<String>, // analyse output here: https://colab.research.google.com/drive/1zELlGdzGdjChWKikSqZTHekm5XRxY-1r?usp=sharingdiff --git a/screenpipe-vision/build.rs b/screenpipe-vision/build.rsindex e241cb876..82a7addf2 100644--- a/screenpipe-vision/build.rs+++ b/screenpipe-vision/build.rs@@ -1,4 +1,7 @@+#[cfg(target_os = "macos")]use std::env;++#[cfg(target_os = "macos")]use std::path::PathBuf;fn main() {