changeset 2045:efbe5b41658e

* tests/flash1.c (cyg_user_start): Fix a compiler warning about signedness of pointers. * src/synth.c (flash_hwr_init): Cast to keep the compiler happy.
author asl
date Wed, 03 Aug 2005 20:43:17 +0000
parents 6f4928fc3037
children fa70ef591baf
files packages/devs/flash/synth/current/ChangeLog packages/devs/flash/synth/current/src/synth.c packages/devs/flash/synth/current/tests/flash1.c
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/flash/synth/current/ChangeLog
+++ b/packages/devs/flash/synth/current/ChangeLog
@@ -1,3 +1,12 @@
+2005-08-02  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* tests/flash1.c (cyg_user_start): Fix a compiler warning about
+	signedness of pointers.
+
+2005-07-30  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/synth.c (flash_hwr_init): Cast to keep the compiler happy.
+
 2005-03-27  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* tests/flash1.c: gcc 3.x does not like string continuing
--- a/packages/devs/flash/synth/current/src/synth.c
+++ b/packages/devs/flash/synth/current/src/synth.c
@@ -109,7 +109,7 @@ flash_hwr_init(void)
     }
     cyg_dev_flash_synth_base = (flash_t *)cyg_hal_sys_mmap( 
 #ifdef CYGMEM_FLASH_SYNTH_BASE
-                CYGMEM_FLASH_SYNTH_BASE,
+                (void *)CYGMEM_FLASH_SYNTH_BASE,
 #else
                 NULL,
 #endif
--- a/packages/devs/flash/synth/current/tests/flash1.c
+++ b/packages/devs/flash/synth/current/tests/flash1.c
@@ -133,7 +133,7 @@ void cyg_user_start(void)
     CYG_TEST_PASS_FAIL((ret == 0),"flash program overrun check");
 
     /* Program over a block boundary */
-    prog_start = (unsigned char *)flash_start + block_size - sizeof(copyright)/2;
+    prog_start = (char *)flash_start + block_size - sizeof(copyright)/2;
     ret = flash_program(prog_start,&copyright,sizeof(copyright),NULL);
     CYG_TEST_PASS_FAIL((ret == FLASH_ERR_OK),"flash_program2");