# HG changeset patch # User jld # Date 1246474329 0 # Node ID d5bbba5243dcdfd8776e5d8b3513e2ccf9554d60 # Parent 22da989aafa4e2e8a3bc06c989d9e7e2ccbbd444 * tests/flashdev.c: Compiler warning cleanup. [ Bugzilla 1000643 ] diff --git a/packages/io/flash/current/ChangeLog b/packages/io/flash/current/ChangeLog --- a/packages/io/flash/current/ChangeLog +++ b/packages/io/flash/current/ChangeLog @@ -50,6 +50,10 @@ 2009-02-13 Bart Veer + + * tests/flashdev.c: Some warnings cleanup. [ Bugzilla 1000643 ] + 2008-11-23 Sergei Gavrikov * doc/flash.sgml: Fix flash.h header name typos. diff --git a/packages/io/flash/current/tests/flashdev.c b/packages/io/flash/current/tests/flashdev.c --- 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();