[Bug 2008] LEON3: fix compiler warning in SHM driver

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Feb 2 16:32:27 UTC 2012


https://www.rtems.org/bugzilla/show_bug.cgi?id=2008

--- Comment #2 from Joel Sherrill <joel.sherrill at oarcorp.com> 2012-02-02 10:32:27 CST ---
Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>
---
 c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
index 609c2b1..12f3380 100644
--- a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
+++ b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
@@ -107,7 +107,7 @@ void Shm_Get_configuration(

   BSP_shm_cfgtbl.poll_intr    = INTR_MODE;
   BSP_shm_cfgtbl.Intr.address =
-     (vol_u32) &(LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index]);
+     (vol_u32 *) &(LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index]);
   BSP_shm_cfgtbl.Intr.value   = 1 << LEON3_MP_IRQ ;
   BSP_shm_cfgtbl.Intr.length  = 4;

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list