Browse Source

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 <rusty@rustcorp.com.au>
Rusty Russell 13 years ago
parent
commit
0cfe0db356
1 changed files with 1 additions and 2 deletions
  1. 1 2
      ccan/alignof/test/run.c

+ 1 - 2
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);