]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: Set but not used variables
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 11 Sep 2010 16:14:09 +0000 (12:14 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 20 Sep 2010 05:19:27 +0000 (22:19 -0700)
commit6d118a03664880782730716b1daef1fc63d95540
tree3cebdd073da1935572d01b0309b4382a40d2c51d
parent0bc837f68a72ba1f75d940cc5dd057774d9f36bb
vol: Set but not used variables

Fix some set but unused variable warnings in the vol directory.

In VDetachVolume_r, much of the code and variables are only
useful in the FSSYNC_BUILD_CLIENT case.  Scope the code
accordingly.

forcefree is only used in the AFS_DEMAND_ATTACH_FS case, so
scope code that sets it accordingly.

Spotted by gcc 4.6

Change-Id: I345db6c9aba2d433ccbbc33fdc10d716c06b913c
Reviewed-on: http://gerrit.openafs.org/2786
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/vol-salvage.c
src/vol/volume.c