@cryptotaxi247 / netdata-1 / commits / 3da97267f

do not compile checks plugin if netdata is compiled with debugging

Costa Tsaousis (ktsaou) committed Oct 15, 2017 at 23:51 UTC 3da97267f9f01f1d70a3557a1844735c98ec1e4e
2 files changed +5
src/plugin_checks.c
+3
@@ -1,5 +1,7 @@
1 #include "common.h"
2
3 +#ifdef NETDATA_INTERNAL_CHECKS
4 +
5 void *checks_main(void *ptr) {
6 struct netdata_static_thread *static_thread = (struct netdata_static_thread *)ptr;
7
@@ -124,3 +126,4 @@ void *checks_main(void *ptr) {
126 return NULL;
127 }
128
129 +#endif // NETDATA_INTERNAL_CHECKS
src/plugin_checks.h
+2
@@ -1,6 +1,8 @@
1 #ifndef NETDATA_PLUGIN_CHECKS_H
2 #define NETDATA_PLUGIN_CHECKS_H 1
3
4 +#ifdef NETDATA_INTERNAL_CHECKS
5 void *checks_main(void *ptr);
6 +#endif // NETDATA_INTERNAL_CHECKS
7
8 #endif /* NETDATA_PLUGIN_PROC_H */