[cairo] [PATCH 5/6] cairo-script: Error if asked to decompress with missing compression lib

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 30 02:32:39 PST 2014


On Thu, Jan 30, 2014 at 02:14:14AM +0000, Bryce W. Harrington wrote:
> This quells the following warning:
> 
> warning: enumeration value ‘LZO’ not handled in switch [-Wswitch-enum]
> 
> The LZO enum value is defined and used elsewhere, even if lzo support
> isn't available.
> 
> This situation might arise if cairo scripts were generated on one system
> with lzo, and then replayed on a system without it.  For now simply
> error out if this occurs.

Right, I thought these currently fell into the default: case?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list