summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-30 18:16:58 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-31 14:45:36 +0200
commite9149cdc2e7a4d85e5626188a95dfc52319c1055 (patch)
treea7df7b00a0eedf8a107185e32c3f44c67e26077f /solenv
parentef126328c3ad35d51395abc461c3d64429f91c26 (diff)
concat-deps: fix build with gcc -fsanitize=... -std=gnu89
Apparently Clang C89 mode is sloppily implemented and allows this. Change-Id: I78ef943bc4c5f8590dae8879dad65ad9fbe9a9bb
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/concat-deps.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 38d009b8c314..62b5ff117657 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -1174,10 +1174,13 @@ const char *env_str;
#endif
}
#if !ENABLE_RUNTIME_OPTIMIZATIONS
- hash_destroy(dep_hash);
- for (size_t i = 0; i != file_load_buffer_count; ++i)
{
- free(file_load_buffers[i]);
+ size_t i;
+ hash_destroy(dep_hash);
+ for (i = 0; i != file_load_buffer_count; ++i)
+ {
+ free(file_load_buffers[i]);
+ }
}
#endif
return rc;