From: Simon Wilkinson Date: Wed, 13 Jul 2011 13:42:11 +0000 (+0100) Subject: volser: fix set-but-unused variable warning X-Git-Tag: upstream/1.8.0_pre1^2~3533 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6840d8dfb80d9ae3888171520304a021caef9fe5;p=packages%2Fo%2Fopenafs.git 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 --- 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)); */