changeset 2888:d5bbba5243dc

* tests/flashdev.c: Compiler warning cleanup. [ Bugzilla 1000643 ]
author jld
date Wed, 01 Jul 2009 18:52:09 +0000
parents 22da989aafa4
children 8bd21cd19d19
files packages/io/flash/current/ChangeLog packages/io/flash/current/tests/flashdev.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/flash/current/ChangeLog
+++ b/packages/io/flash/current/ChangeLog
@@ -50,6 +50,10 @@ 2009-02-13  Bart Veer  <bartv@ecoscentri
 	* cdl/io_flash.cdl: remove CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM, no
 	longer needed.
 
+2008-11-24  Sergei Gavrikov  <sergei.gavrikov@gmail.com>
+
+	* tests/flashdev.c: Some warnings cleanup. [ Bugzilla 1000643 ]
+
 2008-11-23  Sergei Gavrikov  <sergei.gavrikov@gmail.com>
 
 	* doc/flash.sgml: Fix flash.h header name typos.
--- a/packages/io/flash/current/tests/flashdev.c
+++ b/packages/io/flash/current/tests/flashdev.c
@@ -106,14 +106,17 @@ cyg_start( void )
     cyg_io_flash_getconfig_erase_t e;
     cyg_io_flash_getconfig_devsize_t d;
     cyg_io_flash_getconfig_blocksize_t b;
+#ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING
     cyg_io_flash_getconfig_lock_t l;
     cyg_io_flash_getconfig_unlock_t u;
+#endif
     CYG_ADDRWORD flash_start, flash_end;
     CYG_ADDRWORD flash_test_start, flash_addr;
     cyg_uint32 flash_block_size, flash_num_blocks;
     CYG_ADDRWORD test_buf1, test_buf2;
     cyg_uint32 *lp1, *lp2;
-    int i, len;
+    int i;
+    unsigned len;
     cyg_bool passed, ok;
 
     CYG_TEST_INIT();