From ad8b796621e457a3eb5f5bb47518881fa100b470 Mon Sep 17 00:00:00 2001 From: thiagoftsm Date: Tue, 15 Oct 2019 20:04:09 +0000 Subject: Clang warnings (#7090) * clang_warnings: Fix unecessary comparison Netdata was verifying whether a pointer that will never be NULL could be NULL. This commit removes this * clang_warnings: Fix unecessary comparison Netdata was doing another unecessary comparison in other file * clang_warnings: Unecessary parenthesis This commit removes the excess of parenthesis in a file * clang_warnings: Remove unecessary initialization Remove from json file a initial set that is overwritten few lines late * clang_warnings: Comments Fix comments on top of the function * clang_warnings: Missing Cast Volatile variable generates warnings with Clang sometimes, so it was necessary to cast variables * clang_warnings: Return from previous Considering the possible problems given by the solution, I am returning for the previous stage --- web/api/queries/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/api') diff --git a/web/api/queries/query.c b/web/api/queries/query.c index 6f186d3ac7..b0eb826d6b 100644 --- a/web/api/queries/query.c +++ b/web/api/queries/query.c @@ -1559,7 +1559,7 @@ RRDR *rrd2rrdr( rrd_update_every, first_entry_t, last_entry_t); #ifdef ENABLE_DBENGINE - if ((st->rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE)) { + if (st->rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) { struct rrdeng_region_info *region_info_array; unsigned regions, max_interval; -- cgit v1.2.3