When compiling aufs on debian etch, I get this warning with 2007-01-15
cvs:

  CC [M]  fs/aufs/i_op.o
fs/aufs/i_op.c: In function 'silly_lock':
fs/aufs/i_op.c:84: warning: 'locked' is used uninitialized in this function

This fixes that, though I don't know if it's worth it. The code looks
good as-is. Maybe gcc needs fixing instead.

Jason

---
 fs/aufs/i_op.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.20-rc4-uml/fs/aufs/i_op.c
===================================================================
--- linux-2.6.20-rc4-uml.orig/fs/aufs/i_op.c
+++ linux-2.6.20-rc4-uml/fs/aufs/i_op.c
@@ -59,7 +59,7 @@
 
 static int silly_lock(struct inode *inode, struct nameidata *nd)
 {
-       int locked;
+       int locked = 0;
        struct super_block *sb = inode->i_sb;
 
 #ifdef CONFIG_AUFS_FAKE_DM

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Reply via email to