diff options
author | Maxr1998 | 2020-06-02 12:37:03 +0200 |
---|---|---|
committer | Maxr1998 | 2020-06-02 12:37:03 +0200 |
commit | 3776a3657d1856275b54cdd9a6f21b8163b12243 (patch) | |
tree | f7840b9ebfeb5d35dc7c40d0273e16b96a93a71b | |
parent | 111f23061187fed4a3de1e82b56ad203d3aac514 (diff) |
Fix build on GCC 10
Variable declarations in header files need the extern keyword to not cause duplication definition errors
-rw-r--r-- | src/include/zenmonitor.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |