From: Rusty Russell Date: Wed, 31 Oct 2012 11:02:54 +0000 (+1030) Subject: alignof: fix unused var warning with gcc X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=0cfe0db35600f63218f4a0999a88930f5268e229;ds=sidebyside alignof: fix unused var warning with gcc /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 --- 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);