[MPlayer-dev-eng] [PATCH] shut up warnings in qtxsdk/compone

Dominik Mierzejewski dominik at rangers.eu.org
Tue Dec 10 22:39:37 CET 2002


On Tuesday, 10 December 2002, D Richard Felker III wrote:
> On Tue, Dec 10, 2002 at 07:40:05PM +0100, Dominik Mierzejewski wrote:
> > > #define FOUR_CHAR_CODE(s) (s[0] | (s[1]<<8) | (s[2]<<16) | (s[3]<<24))
> > 
> > This doesn't compile.
> 
> Hmm, it should if s is a string literal. What's the error?

It is:
/* values for PixMap.pixelFormat*/
enum {
    k16LE555PixelFormat         = FOUR_CHAR_CODE("L555"),       /* 16 bit LE rgb 555 (PC)*/
[...]

And the error:
[...]
../loader/qtx/qtxsdk/components.h:157: enumerator value for `k16LE555PixelFormat' not integer constant

-- 
MPlayer RPMs maintainer: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"



More information about the MPlayer-dev-eng mailing list