diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:32:41 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:32:41 -0500 |
commit | 0cca2724311b8df9989dc46efad12bdbe05c3883 (patch) | |
tree | 263a41299101aa9de989192de2d62e113725d494 /libs/pbd | |
parent | 342237bf9c71927b5b6017c527a2d54b5c8be250 (diff) |
try to fix various warnings from gcc when optimization flags are enabled
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 (); } |