From f1d909f0f854194f5a40d850886d1413fb8b63c2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 24 Mar 2010 17:16:51 +0000 Subject: [PATCH] Make hweight32 function static Avoids compiler warning. Signed-off-by: Ian Jackson --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 9f95c2f3e..a49bf0896 100644 --- a/vl.c +++ b/vl.c @@ -4707,7 +4707,7 @@ static void termsig_setup(void) #endif /* 32bit Hamming weight */ -unsigned int hweight32(unsigned int w) +static unsigned int hweight32(unsigned int w) { unsigned int res = w - ((w >> 1) & 0x55555555); res = (res & 0x33333333) + ((res >> 2) & 0x33333333); -- 2.39.5