Mercurial > hg > svcore
changeset 953:f5810f1270ae
Avoid compiler warnings when building without lrdf
author | Chris Cannam |
---|---|
date | Wed, 13 Aug 2014 09:50:42 +0100 |
parents | ad14e7ed096d |
children | 35b05cac32d0 5cadfcec89bc |
files | plugin/DSSIPluginFactory.cpp plugin/LADSPAPluginFactory.cpp |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugin/DSSIPluginFactory.cpp Mon Aug 11 11:30:18 2014 +0100 +++ b/plugin/DSSIPluginFactory.cpp Wed Aug 13 09:50:42 2014 +0100 @@ -274,6 +274,9 @@ #else baseUri = "http://dssi.sourceforge.net/ontology#"; #endif +#else + // avoid unused parameter + baseUri = ""; #endif return lrdfPaths;
--- a/plugin/LADSPAPluginFactory.cpp Mon Aug 11 11:30:18 2014 +0100 +++ b/plugin/LADSPAPluginFactory.cpp Wed Aug 13 09:50:42 2014 +0100 @@ -621,6 +621,8 @@ } baseUri = LADSPA_BASE; +#else + baseUri = ""; #endif return lrdfPaths; @@ -877,6 +879,10 @@ } lrdf_free_uris(uris); } +#else + // avoid unused parameter + (void)uri; + (void)base; #endif }