summaryrefslogtreecommitdiffstats
path: root/web/api
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2019-10-15 20:04:09 +0000
committerGitHub <noreply@github.com>2019-10-15 20:04:09 +0000
commitad8b796621e457a3eb5f5bb47518881fa100b470 (patch)
tree80a131ea7c7e2b2ecf0d97f900011d6fe7435080 /web/api
parent16d40fbb14f29e51902434a5da69932c4b0353a0 (diff)
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
Diffstat (limited to 'web/api')
-rw-r--r--web/api/queries/query.c2
1 files changed, 1 insertions, 1 deletions
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;