Index: ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/io/flash/current/ChangeLog,v retrieving revision 1.41 diff -u -r1.41 ChangeLog --- ChangeLog 27 Mar 2005 17:30:54 -0000 1.41 +++ ChangeLog 3 Aug 2005 21:04:16 -0000 @@ -1,3 +1,7 @@ +2005-08-02 Andrew Lunn + + * tests/flash1.c (cyg_start): Compiler warning fixes. + 2005-03-27 Andrew Lunn * tests/flash1.c: Fixed compiler warning with diag_printf. Index: tests/flash1.c =================================================================== RCS file: /cvs/ecos/ecos/packages/io/flash/current/tests/flash1.c,v retrieving revision 1.2 diff -u -r1.2 flash1.c --- tests/flash1.c 27 Mar 2005 17:30:54 -0000 1.2 +++ tests/flash1.c 3 Aug 2005 21:04:16 -0000 @@ -67,8 +67,10 @@ int stat; void *err_addr; CYG_ADDRWORD flash_start, flash_end; + void **flash_start_addr = (void *)&flash_start; + void **flash_end_addr = (void *)&flash_end; void *flash_test_start, *flash_addr; - cyg_uint32 flash_block_size, flash_num_blocks; + cyg_int32 flash_block_size, flash_num_blocks; CYG_ADDRWORD test_buf1, test_buf2; cyg_uint32 *lp1, *lp2; int i, len; @@ -93,13 +95,14 @@ diag_printf("FLASH: driver init failed: %s\n", flash_errmsg(stat)); CYG_TEST_FAIL_FINISH("FLASH driver init failed"); } - flash_get_limits((void *)0, (void **)&flash_start, (void **)&flash_end); + flash_get_limits((void *)0, flash_start_addr, flash_end_addr); // Keep 'end' address as last valid location, to avoid wrap around problems flash_end = flash_end - 1; flash_get_block_info(&flash_block_size, &flash_num_blocks); - diag_printf("FLASH: %p - %x, %d blocks of 0x%x bytes each.\n", - flash_start, flash_end + 1, flash_num_blocks, flash_block_size); + diag_printf("FLASH: 0x%x - 0x%x, %d blocks of 0x%x bytes each.\n", + flash_start, flash_end + 1, flash_num_blocks, + flash_block_size); // Verify that the testing limits are within the bounds of the // physical device. Also verify that the size matches with