fix compilation errors on ancient gcc versions
Costa Tsaousis (ktsaou) committed
Mar 20, 2018 at 02:43 UTC
02ba475dc1bd8650ea7d4c98c9a367171d8ce38b
2 files changed
+2
-2
src/plugin_tc.c
+1
-1
@@ -1158,7 +1158,7 @@ void *tc_main(void *ptr) {
1158
sleep((unsigned int) localhost->rrd_update_every);
1159
}
1160
1161
-cleanup:
1161
+cleanup: ; // added semi-colon to prevent older gcc error: label at end of compound statement
1162
netdata_thread_cleanup_pop(1);
1163
return NULL;
1164
}
src/statsd.c
+1
-1
@@ -2487,7 +2487,7 @@ void *statsd_main(void *ptr) {
2487
}
2488
}
2489
2490
-cleanup:
2490
+cleanup: ; // added semi-colon to prevent older gcc error: label at end of compound statement
2491
netdata_thread_cleanup_pop(1);
2492
return NULL;
2493
}