summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-04 06:08:02 +0000
committerDavid Robillard <d@drobilla.net>2011-02-04 06:08:02 +0000
commit4271de2ee1830bb73bcb96828a32303ee1f2ad18 (patch)
tree32def066083670375b983df7ff166c8868ecaed2 /src/plugin.c
parent77a78c6535a62bdadbf780a069aa47a4bfd01805 (diff)
downloadlilv-4271de2ee1830bb73bcb96828a32303ee1f2ad18.tar.gz
lilv-4271de2ee1830bb73bcb96828a32303ee1f2ad18.tar.bz2
lilv-4271de2ee1830bb73bcb96828a32303ee1f2ad18.zip
Fix warnings when building with --strict (but without --debug).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2909 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 4b29a00..ce2a3ee 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -164,6 +164,7 @@ slv2_plugin_load_ports_if_necessary(SLV2Plugin p)
NULL);
FOREACH_MATCH(ports) {
+ SLV2Value index = NULL;
SLV2Node port = slv2_match_object(ports);
SLV2Value symbol = slv2_plugin_get_unique(
p, port, p->world->lv2_symbol_node);
@@ -174,8 +175,7 @@ slv2_plugin_load_ports_if_necessary(SLV2Plugin p)
goto error;
}
- SLV2Value index = slv2_plugin_get_unique(
- p, port, p->world->lv2_index_node);
+ index = slv2_plugin_get_unique(p, port, p->world->lv2_index_node);
if (!slv2_value_is_int(index)) {
SLV2_ERROR("port has a non-integer index\n");