Ian Lynagh | 5 Oct 2006 21:54
Picon
Gravatar

Re: Darcs patches: Remove cast-as-lvalue usages to allow for compilation under GCC 4.0+

On Fri, Sep 29, 2006 at 02:16:45PM -0500, Brian Smith wrote:
> GHC's Linker.c and the Win32 library's DumpBMP.c fail to compile using GCC
> 4.0 (on MinGW) because they use the cast-as-lvalue construct. From
> http://gcc.gnu.org/gcc-4.0/changes.html: "The cast-as-lvalue,
> conditional-expression-as-lvalue and compound-expression-as-lvalue
> extensions, which were deprecated in 3.3.4 and 3.4, have been removed."
> 
> These two patches (one for GHC, the other for packages/Win32) remove the
> offending casts. These patches were tested against the GHC 6.6 branch.

Applied, thanks.

Ian

Gmane