diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-27 11:05:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-27 11:05:08 +0200 |
| commit | 99c1d1f247343b884af0b51389311484ed265d3b (patch) | |
| tree | 77dc7653f5e05f36a036f56199fef8359a019c05 | |
| parent | f15a469c036587a74d93fa14506eac87502d2b4c (diff) | |
Fix some unused variable warnings on macOS.
| -rw-r--r-- | src/lib/cross_osx.cc | 4 | ||||
| -rw-r--r-- | src/tools/dcpomatic_disk.cc | 3 | ||||
| -rw-r--r-- | src/tools/dcpomatic_disk_writer.cc | 2 | ||||
| -rw-r--r-- | wscript | 1 |
4 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc index aa05df016..e91d3df16 100644 --- a/src/lib/cross_osx.cc +++ b/src/lib/cross_osx.cc @@ -245,7 +245,7 @@ home_directory () } string -command_and_read (string cmd) +command_and_read (string) { return ""; } @@ -515,7 +515,7 @@ config_path () } -void done_callback(DADiskRef disk, DADissenterRef dissenter, void* context) +void done_callback(DADiskRef, DADissenterRef dissenter, void* context) { LOG_DISK_NC("Unmount finished"); bool* success = reinterpret_cast<bool*> (context); diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc index 55f2bd440..b94d4bf94 100644 --- a/src/tools/dcpomatic_disk.cc +++ b/src/tools/dcpomatic_disk.cc @@ -35,8 +35,11 @@ #include "lib/job_manager.h" #include "lib/disk_writer_messages.h" #include "lib/version.h" +#include "lib/warnings.h" #include <wx/wx.h> +DCPOMATIC_DISABLE_WARNINGS #include <boost/process.hpp> +DCPOMATIC_ENABLE_WARNINGS #ifdef DCPOMATIC_WINDOWS #include <boost/process/windows.hpp> #endif diff --git a/src/tools/dcpomatic_disk_writer.cc b/src/tools/dcpomatic_disk_writer.cc index 1e6d10fbf..2c3753e57 100644 --- a/src/tools/dcpomatic_disk_writer.cc +++ b/src/tools/dcpomatic_disk_writer.cc @@ -569,7 +569,7 @@ main () /* I *think* this confumes the notifyd event that we used to start the process, so we only * get started once per notification. */ - xpc_set_event_stream_handler("com.apple.notifyd.matching", DISPATCH_TARGET_QUEUE_DEFAULT, ^(xpc_object_t event) {}); + xpc_set_event_stream_handler("com.apple.notifyd.matching", DISPATCH_TARGET_QUEUE_DEFAULT, ^(xpc_object_t) {}); #endif try { @@ -549,6 +549,7 @@ def configure(conf): #include <boost/process.hpp>\n int main() { new boost::process::child("foo"); }\n """, + cxxflags='-Wno-unused-parameter', msg='Checking for boost process library', lib=deps, uselib_store='BOOST_PROCESS') |
