This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
PowerPC - clean up compiler warning
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 23 Apr 2004 14:56:01 -0600
- Subject: PowerPC - clean up compiler warning
- Organization: MLB Associates
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: hal/powerpc/arch/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/arch/current/ChangeLog,v
retrieving revision 1.61
diff -u -5 -p -r1.61 ChangeLog
--- hal/powerpc/arch/current/ChangeLog 22 Apr 2004 15:26:49 -0000 1.61
+++ hal/powerpc/arch/current/ChangeLog 23 Apr 2004 20:55:03 -0000
@@ -1,5 +1,10 @@
+2004-04-23 Gary Thomas <gary@mlbassoc.com>
+
+ * src/redboot_linux_exec.c (do_exec): Fix compiler warning about bad
+ cast (dereferencing type-punned pointer will break strict-aliasing rules)
+
2004-04-22 Jani Monoses <jani@iv.ro>
* cdl/hal_powerpc.cdl :
Invoke tail with stricter syntax that works in latest coreutils.
Index: hal/powerpc/arch/current/src/redboot_linux_exec.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/arch/current/src/redboot_linux_exec.c,v
retrieving revision 1.1
diff -u -5 -p -r1.1 redboot_linux_exec.c
--- hal/powerpc/arch/current/src/redboot_linux_exec.c 28 Aug 2003 15:55:52 -0000 1.1
+++ hal/powerpc/arch/current/src/redboot_linux_exec.c 23 Apr 2004 20:53:45 -0000
@@ -110,13 +110,13 @@ do_exec(int argc, char *argv[])
bd_t *board_info;
CYG_INTERRUPT_STATE oldints;
unsigned long sp = CYGMEM_REGION_ram+CYGMEM_REGION_ram_SIZE;
init_opts(&opts[0], 'w', true, OPTION_ARG_TYPE_NUM,
- (void **)&wait_time, (bool *)&wait_time_set, "wait timeout");
+ (void *)&wait_time, (bool *)&wait_time_set, "wait timeout");
init_opts(&opts[1], 'c', true, OPTION_ARG_TYPE_STR,
- (void **)&cmd_line, (bool *)&cmd_line_set, "kernel command line");
+ (void *)&cmd_line, (bool *)&cmd_line_set, "kernel command line");
entry = entry_address; // Default from last 'load' operation
if (!scan_opts(argc, argv, 1, opts, 2, (void *)&entry, OPTION_ARG_TYPE_NUM,
"[physical] starting address")) {
return;
}