[Haskell] GHC and GLUT
Wolfgang Jeltsch
wolfgang at jeltsch.net
Tue Jan 10 14:18:33 EST 2006
Am Montag, 9. Januar 2006 10:56 schrieb Axel Simon:
> On Fri, 2006-01-06 at 22:37 +0100, Wolfgang Jeltsch wrote:
> > Hello again,
> >
> > now that I had installed libsm-dev and libxmu-dev, building a Gears
> > binary worked well. Since the problem didn't seem related to the GHC
> > version, I deinstalled the GHC backports and installed GHC from sarge
> > again which is 6.2.2.
> >
> > However, with GHC 6.2.2 I got these error messages during compiling
> > Gears.hs:
> >
> > /tmp/ghc10821.hc: In function `sfcm_ret':
> > /tmp/ghc10821.hc:1098: warning: assignment discards qualifiers from
> > pointer target type
> > /tmp/ghc10821.hc: In function `sfcf_ret':
> > /tmp/ghc10821.hc:1216: warning: assignment discards qualifiers from
> > pointer target type
> > /tmp/ghc10821.hc: In function `sfc8_ret':
> > /tmp/ghc10821.hc:1334: warning: assignment discards qualifiers from
> > pointer target type
> > /tmp/ghc10821.hc: In function `Main_info_entry':
> > /tmp/ghc10821.hc:1443: warning: assignment discards qualifiers from
> > pointer target type
> >
> > What does this have to say?
>
> You probably already got an answer. It's to do with const modifiers that
> ghc cannot produce correctly since FFI declarations do not take const
> modifiers. There was a discussion about this, but all solutions were too
> intrusive with respect to the net gain (removing some warnings).
So the warnings are harmless? But why don't they occur with GHC 6.4?
> Axel.
Best wishes,
Wolfgang
More information about the Haskell
mailing list