From: Jeff Garzik Date: Wed, 4 Oct 2006 11:57:18 +0000 (-0400) Subject: [JFFS2] kill warning RE debug-only variables X-Git-Tag: v2.6.20-rc6~47^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6b1d82d079a99d09761ee5fbc66c49f33b42324;p=pandora-kernel.git [JFFS2] kill warning RE debug-only variables gcc emits the following warning on a 'allmodconfig' build: fs/jffs2/xattr.c: In function ‘unrefer_xattr_datum’: fs/jffs2/xattr.c:402: warning: unused variable ‘version’ fs/jffs2/xattr.c:402: warning: unused variable ‘xid’ Given that these variables are only used in the debug printk, and they merely remove a deref, we can easily kill the warning by adding the derefs to the debug printk. Signed-off-by: Jeff Garzik Signed-off-by: David Woodhouse --- Reading git-diff-tree failed