Signed-off-by: Matteo Bruni mbruni@codeweavers.com --- So that if we forget to update the function when introducing a new CS operation we get a compiler warning. Idea spurred from a conversation with Andrew Eikum.
dlls/wined3d/cs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index b87003c53b83..908daa22a56a 100644 --- a/dlls/wined3d/cs.c +++ b/dlls/wined3d/cs.c @@ -510,9 +510,8 @@ static const char *debug_cs_op(enum wined3d_cs_op op) WINED3D_TO_STR(WINED3D_CS_OP_GENERATE_MIPMAPS); WINED3D_TO_STR(WINED3D_CS_OP_STOP); #undef WINED3D_TO_STR - default: - return wine_dbg_sprintf("UNKNOWN_OP(%#x)", op); } + return wine_dbg_sprintf("UNKNOWN_OP(%#x)", op); }
static void wined3d_cs_exec_nop(struct wined3d_cs *cs, const void *data)