From 66d0b538e0afca333b7f992b3406de7fd844bfab Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Fri, 18 Jan 2019 03:42:39 +0000 Subject: [PATCH] platform/cacheline.c: mark compilation-unit private variables static Fixes compiler diagnostic: cacheline.c:31:8: warning: no previous extern declaration for non-static variable 'cacheline_size' [-Wmissing-variable-declarations] --- src/libmowgli/platform/cacheline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmowgli/platform/cacheline.c b/src/libmowgli/platform/cacheline.c index 9d3de53..abd64f3 100644 --- a/src/libmowgli/platform/cacheline.c +++ b/src/libmowgli/platform/cacheline.c @@ -28,7 +28,7 @@ # include #endif -size_t cacheline_size; +static size_t cacheline_size = 0; void mowgli_cacheline_bootstrap(void)