From d6fd8a97711eb065603a8d667ff5dbe68a246439 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Fri, 13 Jun 2014 12:23:33 +0900 Subject: [PATCH] r600g/radeonsi: Remove default case from PIPE_COMPUTE_CAP_* switch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This way, the compiler warns about unhandled caps. Reviewed-by: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 1911cdef3de..46e8a7913fd 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -526,11 +526,10 @@ static int r600_get_compute_param(struct pipe_screen *screen, *max_compute_units = MAX2(rscreen->info.max_compute_units, 1); } return sizeof(uint32_t); - - default: - fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param); - return 0; } + + fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param); + return 0; } static uint64_t r600_get_timestamp(struct pipe_screen *screen) -- 2.30.2