diff options
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/fpu.cc | 4 | ||||
-rw-r--r-- | libs/pbd/openuri.cc | 2 | ||||
-rw-r--r-- | libs/pbd/semutils.cc | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc index 40f8cca9d6..8929491cd9 100644 --- a/libs/pbd/fpu.cc +++ b/libs/pbd/fpu.cc @@ -105,9 +105,9 @@ FPU::FPU () *fxbuf = (char *) malloc (512); assert (*fxbuf); #else - posix_memalign ((void **) &fxbuf, 16, sizeof (char *)); + (void) posix_memalign ((void **) &fxbuf, 16, sizeof (char *)); assert (fxbuf); - posix_memalign ((void **) fxbuf, 16, 512); + (void) posix_memalign ((void **) fxbuf, 16, 512); assert (*fxbuf); #endif diff --git a/libs/pbd/openuri.cc b/libs/pbd/openuri.cc index 45154d0ad1..13d534e760 100644 --- a/libs/pbd/openuri.cc +++ b/libs/pbd/openuri.cc @@ -49,7 +49,7 @@ PBD::open_uri (const char* uri) std::string command = "xdg-open "; command += uri; command += " &"; - system (command.c_str()); + (void) system (command.c_str()); return true; #endif diff --git a/libs/pbd/semutils.cc b/libs/pbd/semutils.cc index 9ac5f60d35..48fdd249f6 100644 --- a/libs/pbd/semutils.cc +++ b/libs/pbd/semutils.cc @@ -35,6 +35,8 @@ ProcessSemaphore::ProcessSemaphore (const char* name, int val) } #else + (void) name; /* stop gcc warning on !Apple systems */ + if (sem_init (&_sem, 0, val)) { throw failed_constructor (); } |