From 3eb914b4c8d51e34456d2ff800163fac0d9d26c8 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 9 Mar 2014 17:06:44 +0000 Subject: [PATCH] Fix build --- source/backend/plugin/BridgePlugin.cpp | 2 +- source/utils/CarlaPipeUtils.hpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source/backend/plugin/BridgePlugin.cpp b/source/backend/plugin/BridgePlugin.cpp index 1e3258c1f..8f97448d0 100644 --- a/source/backend/plugin/BridgePlugin.cpp +++ b/source/backend/plugin/BridgePlugin.cpp @@ -153,7 +153,7 @@ struct BridgeControl : public RingBufferControl { shm_t shm; BridgeControl() - : RingBufferControl(nullptr), + : RingBufferControl(nullptr), data(nullptr) { carla_shm_init(shm); diff --git a/source/utils/CarlaPipeUtils.hpp b/source/utils/CarlaPipeUtils.hpp index 0c84c4dea..cc3f402fb 100644 --- a/source/utils/CarlaPipeUtils.hpp +++ b/source/utils/CarlaPipeUtils.hpp @@ -556,7 +556,12 @@ private: switch (ret) { case 0: /* child process */ - execlp(argv[0], argv[0], argv[1], argv[2], argv[3], argv[4], nullptr); + execlp(argv[0], argv[0], argv[1], argv[2], argv[3], argv[4], +#ifdef CARLA_OS_MAC // fix warning + NULL); +#else + nullptr); +#endif carla_stderr2("exec failed: %s", std::strerror(errno)); _exit(0); return false;