[Mesa-dev] [PATCH] r600g/radeonsi: Remove default case from PIPE_COMPUTE_CAP_* switch
Marek Olšák
maraeo at gmail.com
Fri Jun 13 06:11:17 PDT 2014
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Fri, Jun 13, 2014 at 5:23 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> This way, the compiler warns about unhandled caps.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> 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 4c6cf0e..9813026 100644
> --- a/src/gallium/drivers/radeon/r600_pipe_common.c
> +++ b/src/gallium/drivers/radeon/r600_pipe_common.c
> @@ -519,11 +519,10 @@ static int r600_get_compute_param(struct pipe_screen *screen,
> *max_clock_frequency = rscreen->info.max_sclk;
> }
> 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.0.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list