[GRASS5] Color prompt partially implemented, color confusion.
hamish_nospam at yahoo.com
Tue Apr 18 06:31:02 EDT 2006
> > > This is a non-issue, although adding explicit type casts should
> > > make the warnings go away.
> > It doesn't. It's quite strange; Searching I could only fund
> > R_reset_color prototyped and implemented once, both as int
> > R_reset_color (unsigned char, unsigned char, unsigned char, int).
> > Explicit casts are used almost everywhere and the warning is still
> > generated.
> In that case, I can only assume that the warning is essentially
> telling you that you have an "odd" prototype (i.e. one which doesn't
> follow the K&R rules of not using anything narrower than int/double).
In the past I have been able to get rid of the unsigned char <-> int
conversion warnings by doing proper casts. I never tried to fix them
as I prefered a proper answer to randomly picking one or the other, and
warnings are better than a fix with no policy backing it up.
More information about the grass-dev