summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38e4115)
raw | patch | inline | side by side (parent: 38e4115)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 9 Aug 2016 11:51:02 +0000 (13:51 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 9 Aug 2016 11:52:18 +0000 (13:52 +0200) |
utils_db_query.c: In function ‘udb_result_submit’:
utils_db_query.c:259:11: warning: declaration of ‘status’ shadows a
previous local [-Wshadow]
int status = strjoin (vl.type_instance, sizeof
(vl.type_instance),
^~~~~~
utils_db_query.c:259:11: warning: declaration of ‘status’ shadows a
previous local [-Wshadow]
int status = strjoin (vl.type_instance, sizeof
(vl.type_instance),
^~~~~~
src/utils_db_query.c | patch | blob | history |
diff --git a/src/utils_db_query.c b/src/utils_db_query.c
index 8eae6b8c526440e092891aab0180214e129899ba..c8019845d98c3c6314d4b20577227d1fd08140bd 100644 (file)
--- a/src/utils_db_query.c
+++ b/src/utils_db_query.c
udb_query_t const *q, udb_query_preparation_area_t *q_area)
{
value_list_t vl = VALUE_LIST_INIT;
- int status;
assert (r != NULL);
assert (r_area->ds != NULL);
for (size_t i = 0; i < r->metadata_num; i++)
{
- status = meta_data_add_string (vl.meta, r->metadata[i],
+ int status = meta_data_add_string (vl.meta, r->metadata[i],
r_area->metadata_buffer[i]);
if (status != 0)
{