From: Michel Dänzer Date: Fri, 13 Jun 2014 03:23:33 +0000 (+0900) Subject: r600g/radeonsi: Remove default case from PIPE_COMPUTE_CAP_* switch X-Git-Tag: upstream/10.3~1524 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6fd8a97711eb065603a8d667ff5dbe68a246439;p=platform%2Fupstream%2Fmesa.git r600g/radeonsi: Remove default case from PIPE_COMPUTE_CAP_* switch This way, the compiler warns about unhandled caps. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 1911cde..46e8a79 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)