From 0cfe0db35600f63218f4a0999a88930f5268e229 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 31 Oct 2012 21:32:54 +1030 Subject: [PATCH 1/1] alignof: fix unused var warning with gcc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit /home/rusty/devel/cvs/ccan/ccan/alignof/test/run.c:32:7: warning: variable ‘c2’ set but not used [-Wunused-but-set-variable] Signed-off-by: Rusty Russell --- ccan/alignof/test/run.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ccan/alignof/test/run.c b/ccan/alignof/test/run.c index 2da69032..f36113d1 100644 --- a/ccan/alignof/test/run.c +++ b/ccan/alignof/test/run.c @@ -37,8 +37,7 @@ int main(int argc, char *argv[]) double d; /* Make sure we use all the variables. */ - c = 0; - c2 = c3 = c4 = c; + c = c2 = c3 = c4 = 0; plan_tests(15); ok1((unsigned long)&c % ALIGNOF(char) == 0); -- 2.39.2