Whamcloud - gitweb
LU-506 kernel: FC15 - fix GCC 'set-but-unused' warnings
[fs/lustre-release.git] / libcfs / libcfs / workitem.c
index d3bdf68..69bd052 100644 (file)
@@ -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;