This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: RedBoot: Cleanup excessive indirection in option argumenthandling.
- From: Gary Thomas <gary at mlbassoc dot com>
- To: David Vrabel <dvrabel at arcom dot com>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 30 Sep 2003 15:19:12 -0600
- Subject: Re: RedBoot: Cleanup excessive indirection in option argumenthandling.
- Organization: MLB Associates
- References: <3F79B612.1070707@arcom.com>
On Tue, 2003-09-30 at 10:57, David Vrabel wrote:
> Hi,
>
> RedBoot's init_opts()/scan_opts() use an excessive level of indirection
> for the handling of option arguments. GCC 3.3 chokes on it with
> warnings about "dereferencing type-punned pointer will break
> strict-aliasing rules".
>
> Expect a patch later cleaning up all the typecasts in the
> init_opts()/scan_opts() calls.
>
> 2003-09-30 David Vrabel <dvrabel@arcom.com>
>
> * include/redboot.h, src/parse.c (init_opts, scan_opts): Remove
> the excessive level of indirection in the handling of option
> arguments.
Applied.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates