Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-506 kernel: FC15 - fix GCC 'set-but-unused' warnings
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
workitem.c
diff --git
a/libcfs/libcfs/workitem.c
b/libcfs/libcfs/workitem.c
index
d3bdf68
..
69bd052
100644
(file)
--- a/
libcfs/libcfs/workitem.c
+++ b/
libcfs/libcfs/workitem.c
@@
-414,8
+414,7
@@
int
cfs_wi_startup (void)
{
int i;
- int n;
- int rc;
+ int n, rc;
cfs_wi_data.wi_nthreads = 0;
cfs_wi_data.wi_nsched = CFS_WI_NSCHED;
@@
-440,7
+439,8
@@
cfs_wi_startup (void)
}
}
#else
- n = rc = 0;
+ SET_BUT_UNUSED(rc);
+ SET_BUT_UNUSED(n);
#endif
return 0;