diff --git a/src/Stats.cxx b/src/Stats.cxx
index 6cd6977ec..93795aee5 100644
--- a/src/Stats.cxx
+++ b/src/Stats.cxx
@@ -30,7 +30,7 @@
 
 #include <glib.h>
 
-struct stats stats;
+static struct stats stats;
 
 void stats_global_init(void)
 {
diff --git a/src/Stats.hxx b/src/Stats.hxx
index 1b141355c..525dc154c 100644
--- a/src/Stats.hxx
+++ b/src/Stats.hxx
@@ -40,8 +40,6 @@ struct stats {
 	unsigned album_count;
 };
 
-extern struct stats stats;
-
 void stats_global_init(void);
 
 void stats_global_finish(void);