From 3776a3657d1856275b54cdd9a6f21b8163b12243 Mon Sep 17 00:00:00 2001 From: Maxr1998 Date: Tue, 2 Jun 2020 12:37:03 +0200 Subject: Fix build on GCC 10 Variable declarations in header files need the extern keyword to not cause duplication definition errors --- src/include/zenmonitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/zenmonitor.h b/src/include/zenmonitor.h index ff8f1a7..399d702 100644 --- a/src/include/zenmonitor.h +++ b/src/include/zenmonitor.h @@ -25,4 +25,4 @@ void sensor_init_free(SensorInit *s); gboolean check_zen(); gchar *cpu_model(); guint get_core_count(); -gboolean display_coreid; +extern gboolean display_coreid; -- cgit v1.2.3-70-g09d2