[cairo] [PATCH 3/5] image: Silence missing enum value warning

Andrea Canciani ranma42 at gmail.com
Fri Mar 18 10:13:21 PDT 2011


cairo-image-surface.c:101: warning: enumeration value ‘PIXMAN_x14r6g6b6’ not handled in switch
---
 src/cairo-image-surface.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index bf22cb5..10bd898 100644
--- a/src/cairo-image-surface.c
+++ b/src/cairo-image-surface.c
@@ -126,6 +126,7 @@ _cairo_format_from_pixman_format (pixman_format_code_t pixman_format)
     case PIXMAN_a2b10g10r10:
     case PIXMAN_x2r10g10b10:
     case PIXMAN_a2r10g10b10:
+    case PIXMAN_x14r6g6b6:
     default:
 	return CAIRO_FORMAT_INVALID;
     }
-- 
1.7.1



More information about the cairo mailing list