mtd/fs/jffs2 os-linux.h,1.62,1.63
Artem Bityutskiy
dedekind at infradead.org
Wed Sep 21 07:55:25 EDT 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv8080
Modified Files:
os-linux.h
Log Message:
[JFFS2] (x) = (x) is too much, (void)(x) is enough to avoid gcc's "unused variable" warnings
Index: os-linux.h
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/os-linux.h,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- os-linux.h 21 Sep 2005 11:12:57 -0000 1.62
+++ os-linux.h 21 Sep 2005 11:55:21 -0000 1.63
@@ -80,8 +80,8 @@
#define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, buf)
#define jffs2_flash_read(c, ofs, len, retlen, buf) ((c)->mtd->read((c)->mtd, ofs, len, retlen, buf))
-#define jffs2_flush_wbuf_pad(c) ({do{} while(0); (c) = (c); 0;})
-#define jffs2_flush_wbuf_gc(c, i) ({do{} while(0); (c) = (c); (i) = (i); 0;})
+#define jffs2_flush_wbuf_pad(c) ({ do{} while(0); (void)(c), 0; })
+#define jffs2_flush_wbuf_gc(c, i) ({ do{} while(0); (void)(c), (void) i, 0; })
#define jffs2_write_nand_badblock(c,jeb,bad_offset) (1)
#define jffs2_nand_flash_setup(c) (0)
#define jffs2_nand_flash_cleanup(c) do {} while(0)
More information about the linux-mtd-cvs
mailing list