This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Another compiler warning fix
- From: Andrew Lunn <andrew at lunn dot ch>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Thu, 7 Oct 2004 10:13:18 +0200
- Subject: Another compiler warning fix
Another minor compiler warning fix. flash_v2 branch only.
Andrew
Index: redboot/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.199.2.5
diff -u -r1.199.2.5 ChangeLog
--- redboot/current/ChangeLog 6 Oct 2004 09:49:55 -0000 1.199.2.5
+++ redboot/current/ChangeLog 7 Oct 2004 08:12:28 -0000
@@ -1,3 +1,8 @@
+2004-10-07 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * src/flash.c (do_flash_init): Fix compiler warning about an
+ unused variable.
+
2004-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
* src/flash.c (do_flash_init): We need info independent of
Index: redboot/current/src/flash.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.67.2.4
diff -u -r1.67.2.4 flash.c
--- redboot/current/src/flash.c 6 Oct 2004 09:49:55 -0000 1.67.2.4
+++ redboot/current/src/flash.c 7 Oct 2004 08:12:30 -0000
@@ -1373,8 +1373,10 @@
do_flash_init(void)
{
int stat, i;
- cyg_flashaddr_t err_addr;
cyg_flash_info_t info;
+#ifdef CYGOPT_REDBOOT_FIS
+ cyg_flashaddr_t err_addr;
+#endif
if (!__flash_init) {
__flash_init = 1;