Whamcloud - gitweb
LU-506 kernel: FC15 - fix GCC 'set-but-unused' warnings
authoryangsheng <ys@whamcloud.com>
Thu, 8 Sep 2011 17:33:25 +0000 (01:33 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Dec 2011 16:02:33 +0000 (11:02 -0500)
commita5b81807c5d6d2cb3b2ef1a0a7e150ee6002f7f7
treee1d25503ac65e310dad14a55e708ef8cd6937118
parentf7c68d305568873509766b3aff46e11ce3922d6f
LU-506 kernel: FC15 - fix GCC 'set-but-unused' warnings

Eliminate a number of unused variables in the code that
caused GCC-4.6.0 to warn about "set-but-unused variables".
In some cases the variables are only used in
conditionally-compiled code, so they are used in some way
just to quiet the compiler.

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I8b9b744c787fff4057722420866adea86d8240f5
Reviewed-on: http://review.whamcloud.com/1330
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
45 files changed:
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/libcfs_fail.h
libcfs/include/libcfs/libcfs_private.h
libcfs/libcfs/nidstrings.c
libcfs/libcfs/workitem.c
lnet/lnet/api-ni.c
lnet/lnet/router.c
lnet/selftest/conrpc.c
lnet/selftest/timer.c
lnet/utils/debug.c
lustre/autoconf/lustre-core.m4
lustre/fid/fid_store.c
lustre/fld/fld_index.c
lustre/include/lustre_lib.h
lustre/ldlm/ldlm_flock.c
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/liblustre/dir.c
lustre/liblustre/file.c
lustre/liblustre/llite_cl.c
lustre/liblustre/namei.c
lustre/llite/dcache.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/rw.c
lustre/lmv/lmv_obd.c
lustre/lov/lov_qos.c
lustre/lov/lovsub_lock.c
lustre/lvfs/lvfs_linux.c
lustre/mdc/mdc_locks.c
lustre/obdclass/cl_lock.c
lustre/osc/osc_request.c
lustre/ptlrpc/llog_server.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpcd.c
lustre/ptlrpc/sec_config.c
lustre/ptlrpc/sec_plain.c
lustre/ptlrpc/service.c
lustre/quota/lproc_quota.c
lustre/tests/writeme.c
lustre/utils/liblustreapi.c
lustre/utils/ll_decode_filter_fid.c