From ceaad0b287412157e8d864f4a531ee957866c881 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 3 Sep 2013 08:46:57 -0400 Subject: [PATCH] fix a few minor compilation warnings --- libs/ardour/audioengine.cc | 6 ++---- libs/ardour/jack_utils.cc | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 79a5125606..5e3e5ba9e2 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -1624,10 +1624,8 @@ AudioEngine::request_jack_monitors_input (const std::string& portname, bool yn) void AudioEngine::update_latencies () { - if (jack_recompute_total_latencies) { - GET_PRIVATE_JACK_POINTER (_jack); - jack_recompute_total_latencies (_priv_jack); - } + GET_PRIVATE_JACK_POINTER (_jack); + jack_recompute_total_latencies (_priv_jack); } void diff --git a/libs/ardour/jack_utils.cc b/libs/ardour/jack_utils.cc index 4cacd8ae5d..ecbf8976fd 100644 --- a/libs/ardour/jack_utils.cc +++ b/libs/ardour/jack_utils.cc @@ -442,6 +442,8 @@ ARDOUR::get_jack_coreaudio_device_names (device_map_t& devices) } delete [] coreDeviceIDs; } +#else + (void) devices; #endif } @@ -583,6 +585,8 @@ ARDOUR::set_path_env_for_jack_autostart (const vector& dirs) // push it back into the environment so that auto-started JACK can find it. // XXX why can't we just expect OS X users to have PATH set correctly? we can't ... setenv ("PATH", SearchPath(dirs).to_string().c_str(), 1); +#else + (void) dirs; #endif }