[patch] Fix validation problem of Linker.c
igloo at earth.li
Wed May 19 11:46:24 EDT 2010
On Wed, May 19, 2010 at 05:19:31PM +0200, Matthias Kilian wrote:
> On Wed, May 19, 2010 at 12:34:15PM +0200, Gabor PALI wrote:
> > I got a validation error on FreeBSD/i386 for Linker.c. I attach a
> > tiny patch to fix it, hopefully other systems will like it too :)
> This is because dlerror(3) is const char*, right?
> Do you just get a warning or any kind of error? I'm asking because
> dlerror(3) on Debian is just char* (at least according to the man
> page). If the validation failure comes from some more picky compiler
> flags (I never ran validate on my machines), your diff *may* make
> validate on Debian (and possibly other systems) unhappy. In this
> case, an explicit cast to char* may be better.
The patch validates on Debian.
More information about the Cvs-ghc