]> Git Repo - qemu.git/commitdiff
ui: Make qemu_default_pixman_format() return 0 on unsupported formats
authorBenjamin Herrenschmidt <[email protected]>
Mon, 7 Jul 2014 06:37:26 +0000 (16:37 +1000)
committerGerd Hoffmann <[email protected]>
Mon, 19 Jan 2015 12:33:26 +0000 (13:33 +0100)
In order to remove the logic for detecting supported shared
pixmap formats from device models, make qemu_default_pixman_format()
capable for failing by returning 0 which is not a possible format
value rather than asserting.

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
ui/qemu-pixman.c

index 1f6fea535bd7665e293856118c84fb38e28002e5..6a889e93e7d5349a1f708fa7c4aea0f5ea53fa26 100644 (file)
@@ -84,7 +84,7 @@ pixman_format_code_t qemu_default_pixman_format(int bpp, bool native_endian)
         break;
         }
     }
-    g_assert_not_reached();
+    return 0;
 }
 
 int qemu_pixman_get_type(int rshift, int gshift, int bshift)
This page took 0.026265 seconds and 4 git commands to generate.