changeset 406:b7268e8bd292

Build tweaks for OS/X
author Chris Cannam
date Tue, 16 Jun 2015 13:37:18 +0100
parents 67704de2bb54
children 96ff5b30ce7f
files build/Makefile.osx src/vamp-hostsdk/Files.cpp src/vamp-hostsdk/PluginSummarisingAdapter.cpp
diffstat 3 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/build/Makefile.osx	Tue Jun 16 13:25:13 2015 +0100
+++ b/build/Makefile.osx	Tue Jun 16 13:37:18 2015 +0100
@@ -65,7 +65,7 @@
 # Our default is to try to build for all architectures supported by
 # the MINVERSION in a universal binary.
 #
-ARCHFLAGS ?= -mmacosx-version-min=$(MINVERSION) -arch x86_64 -arch i386 -stdlib=libc++
+ARCHFLAGS ?= -mmacosx-version-min=$(MINVERSION) -arch x86_64 -stdlib=libc++
 
 # Compile flags
 #
--- a/src/vamp-hostsdk/Files.cpp	Tue Jun 16 13:25:13 2015 +0100
+++ b/src/vamp-hostsdk/Files.cpp	Tue Jun 16 13:37:18 2015 +0100
@@ -261,8 +261,6 @@
     struct dirent *e = 0;
     while ((e = readdir(d))) {
  
-        if (!e->d_name) continue;
-       
         size_t len = strlen(e->d_name);
         if (len < extlen + 2 ||
             e->d_name + len - extlen - 1 != "." + extension) {
--- a/src/vamp-hostsdk/PluginSummarisingAdapter.cpp	Tue Jun 16 13:25:13 2015 +0100
+++ b/src/vamp-hostsdk/PluginSummarisingAdapter.cpp	Tue Jun 16 13:37:18 2015 +0100
@@ -628,8 +628,6 @@
 void
 PluginSummarisingAdapter::Impl::segment()
 {
-    SegmentBoundaries::iterator boundaryitr = m_boundaries.begin();
-    
 #ifdef DEBUG_PLUGIN_SUMMARISING_ADAPTER_SEGMENT
     std::cerr << "segment: starting" << std::endl;
 #endif