@cryptotaxi247 / netdata-1 / commits / b939719b5

Fix ebpf compilation warnings (#17100)

Fix compilation warnings

Stelios Fragkakis committed Mar 4, 2024 at 17:38 UTC b939719b58efffdfe6262787c724ebb5f83b2c30
2 files changed +2
src/collectors/ebpf.plugin/ebpf_apps.h
+1
@@ -241,6 +241,7 @@ extern ARAL *ebpf_aral_shm_pid;
241 void ebpf_shm_aral_init();
242 netdata_publish_shm_t *ebpf_shm_stat_get(void);
243 void ebpf_shm_release(netdata_publish_shm_t *stat);
244 +void ebpf_cleanup_exited_pids(int max);
245
246 // ARAL Section end
247
src/collectors/ebpf.plugin/ebpf_shm.c
+1
@@ -1205,6 +1205,7 @@ void ebpf_shm_create_apps_charts(struct ebpf_module *em, void *ptr)
1205 */
1206 static void ebpf_shm_allocate_global_vectors(int apps)
1207 {
1208 + UNUSED(apps);
1209 shm_vector = callocz((size_t)ebpf_nprocs, sizeof(netdata_publish_shm_t));
1210 shm_values = callocz((size_t)ebpf_nprocs, sizeof(netdata_idx_t));
1211