This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Compiler warning fix
- From: Andrew Lunn <andrew at lunn dot ch>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Thu, 7 Oct 2004 09:53:17 +0200
- Subject: Compiler warning fix
This fixes a compiler warning in the ARM HAL arch code.
Andrew
Index: hal/arm/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/ChangeLog,v
retrieving revision 1.100
diff -u -r1.100 ChangeLog
--- hal/arm/arch/current/ChangeLog 2 Sep 2004 16:30:51 -0000 1.100
+++ hal/arm/arch/current/ChangeLog 7 Oct 2004 07:52:24 -0000
@@ -1,3 +1,8 @@
+2004-10-07 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * src/arm_stub.c (target_ins): Added a cast to prevent a compiler
+ warning.
+
2004-09-02 Mark Salter <msalter@redhat.com>
* cdl/hal_arm.cdl (CYGHWR_REDBOOT_LINUX_EXEC_X_SWITCH): New
Index: hal/arm/arch/current/src/arm_stub.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/src/arm_stub.c,v
retrieving revision 1.27
diff -u -r1.27 arm_stub.c
--- hal/arm/arch/current/src/arm_stub.c 6 May 2003 21:00:19 -0000 1.27
+++ hal/arm/arch/current/src/arm_stub.c 7 Oct 2004 07:52:25 -0000
@@ -530,7 +530,7 @@
case 0x3: // Coprocessor & SWI
if (((ins & 0x03000000) == 0x03000000) && ins_will_execute(ins)) {
// SWI
- return (CYGNUM_HAL_VECTOR_SOFTWARE_INTERRUPT * 4);
+ return (unsigned long *)(CYGNUM_HAL_VECTOR_SOFTWARE_INTERRUPT * 4);
} else {
return (pc+1);
}