[Mesa-dev] [PATCH] dri_util: make version var unsigned to silence warnings
Matt Turner
mattst88 at gmail.com
Fri May 29 10:55:16 PDT 2015
On Fri, May 29, 2015 at 10:38 AM, Brian Paul <brianp at vmware.com> wrote:
> _mesa_override_gl_version_contextless() takes an unsigned version
> parameter.
> ---
> src/mesa/drivers/dri/common/dri_util.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
> index 2d847ef..66f9eaa 100644
> --- a/src/mesa/drivers/dri/common/dri_util.c
> +++ b/src/mesa/drivers/dri/common/dri_util.c
> @@ -164,7 +164,7 @@ driCreateNewScreen2(int scrn, int fd,
>
> struct gl_constants consts = { 0 };
> gl_api api;
> - int version;
> + unsigned int version;
Maybe drop the 'int' from the declaration.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
More information about the mesa-dev
mailing list