]> arthur.barton.de Git - netdata.git/commitdiff
remove unneeded variables when NETDATA_INTERNAL_CHECKS is not defined
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 26 Sep 2016 22:46:46 +0000 (01:46 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 26 Sep 2016 22:46:46 +0000 (01:46 +0300)
src/web_client.c

index 5751151fa2ca23597abeca4105b684d23fd3fd83..8de370531ec6612bf00092029150fee3f59eff30 100644 (file)
@@ -1903,8 +1903,18 @@ static inline int http_request_validate(struct web_client *w) {
 }
 
 void web_client_process(struct web_client *w) {
-    static uint32_t hash_api = 0, hash_netdata_conf = 0, hash_data = 0, hash_datasource = 0, hash_graph = 0,
-            hash_list = 0, hash_all_json = 0, hash_exit = 0, hash_debug = 0, hash_mirror = 0;
+    static uint32_t
+            hash_api = 0,
+            hash_netdata_conf = 0,
+            hash_data = 0,
+            hash_datasource = 0,
+            hash_graph = 0,
+            hash_list = 0,
+            hash_all_json = 0;
+
+#ifdef NETDATA_INTERNAL_CHECKS
+    static uint32_t hash_exit = 0, hash_debug = 0, hash_mirror = 0;
+#endif
 
     // start timing us
     gettimeofday(&w->tv_in, NULL);