From e9149cdc2e7a4d85e5626188a95dfc52319c1055 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 30 Jul 2015 18:16:58 +0200 Subject: concat-deps: fix build with gcc -fsanitize=... -std=gnu89 Apparently Clang C89 mode is sloppily implemented and allows this. Change-Id: I78ef943bc4c5f8590dae8879dad65ad9fbe9a9bb --- solenv/bin/concat-deps.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'solenv') 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; -- cgit