@cryptotaxi247 / netdata-1 / commits / 23cc4840f

remove unneeded variables when NETDATA_INTERNAL_CHECKS is not defined

Costa Tsaousis (ktsaou) committed Sep 27, 2016 at 01:46 UTC 23cc4840f8bdbd933c63fce980d1b7f15a652c1b
1 file changed +12 -2
src/web_client.c
+12 -2
@@ -1903,8 +1903,18 @@ static inline int http_request_validate(struct web_client *w) {
1903 }
1904
1905 void web_client_process(struct web_client *w) {
1906 - static uint32_t hash_api = 0, hash_netdata_conf = 0, hash_data = 0, hash_datasource = 0, hash_graph = 0,
1907 - hash_list = 0, hash_all_json = 0, hash_exit = 0, hash_debug = 0, hash_mirror = 0;
1906 + static uint32_t
1907 + hash_api = 0,
1908 + hash_netdata_conf = 0,
1909 + hash_data = 0,
1910 + hash_datasource = 0,
1911 + hash_graph = 0,
1912 + hash_list = 0,
1913 + hash_all_json = 0;
1914 +
1915 +#ifdef NETDATA_INTERNAL_CHECKS
1916 + static uint32_t hash_exit = 0, hash_debug = 0, hash_mirror = 0;
1917 +#endif
1918
1919 // start timing us
1920 gettimeofday(&w->tv_in, NULL);