From: Wolfgang Denk Date: Wed, 24 Mar 2010 13:04:07 +0100 Subject: [U-Boot] [PATCH] jffs2, suen3: Fix compiler warning In-Reply-To: <4BA9AD21.6020601@denx.de> References: <4BA9AD21.6020601@denx.de> Message-ID: <20100324120407.7C3D24C022@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Heiko Schocher, In message <4BA9AD21.6020601@denx.de> you wrote: > > $ ./MAKEALL suen3 > jffs2_1pass.c: In function 'get_fl_mem': > jffs2_1pass.c:399: warning: unused variable 'id' > jffs2_1pass.c: In function 'get_node_mem': > jffs2_1pass.c:423: warning: unused variable 'id' > > Signed-off-by: Heiko Schocher > --- > fs/jffs2/jffs2_1pass.c | 37 ++++++++++++++++++++++--------------- > 1 files changed, 22 insertions(+), 15 deletions(-) NAK. > + default: > + printf("get_fl_mem: unknown device type, \ > + using raw offset!\n"); > + } This will not give the intended output. Please fix. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Security is mostly a superstition. It does not exist in nature... Life is either a daring adventure or nothing." - Helen Keller