]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
volser: fix set-but-unused variable warning
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Wed, 13 Jul 2011 13:42:11 +0000 (14:42 +0100)
committerDerrick Brashear <shadow@dementia.org>
Thu, 14 Jul 2011 02:58:35 +0000 (19:58 -0700)
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 <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/volser/restorevol.c

index c4f681a12520f8fe4f1c27086e5347a2fc37ff86..be88b69e5a2f2b58c35a186ec1c287e5626a6aaf 100644 (file)
@@ -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)); */