From 6840d8dfb80d9ae3888171520304a021caef9fe5 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 13 Jul 2011 14:42:11 +0100 Subject: [PATCH] volser: fix set-but-unused variable warning restorevol reads the magic number from the dump, then does nothing with it. Rather than not reading it at all, just mark the variable that it is read into as unused to supress the compiler warning. Change-Id: I371e2556e3661836f6256fac255ae79005d9ffaa Reviewed-on: http://gerrit.openafs.org/5002 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- src/volser/restorevol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/volser/restorevol.c b/src/volser/restorevol.c index c4f681a12..be88b69e5 100644 --- a/src/volser/restorevol.c +++ b/src/volser/restorevol.c @@ -137,7 +137,7 @@ ReadDumpHeader(struct DumpHeader *dh) { int i, done; char tag, c; - afs_int32 magic; + afs_int32 magic AFS_UNUSED; /* memset(&dh, 0, sizeof(dh)); */ -- 2.39.5