[Mesa-dev] [PATCH 2/3] mesa: Fix format warnings

Nicolai Hähnle nhaehnle at gmail.com
Thu Jan 21 07:51:44 PST 2016


Patches 1 & 2 are

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 20.01.2016 20:14, Jeremy Huddleston Sequoia wrote:
> main/shaderapi.c:1318:51: warning: format specifies type 'unsigned int' but the argument has type 'GLhandleARB' (aka 'unsigned long') [-Wformat]
>        _mesa_debug(ctx, "glDeleteObjectARB(%u)\n", obj);
>                                            ~~      ^~~
>                                            %lu
>
> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
> ---
>   src/mesa/main/shaderapi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
> index 9512e3b..a988f41 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -1315,7 +1315,7 @@ _mesa_DeleteObjectARB(GLhandleARB obj)
>   {
>      if (MESA_VERBOSE & VERBOSE_API) {
>         GET_CURRENT_CONTEXT(ctx);
> -      _mesa_debug(ctx, "glDeleteObjectARB(%u)\n", obj);
> +      _mesa_debug(ctx, "glDeleteObjectARB(%lu)\n", (unsigned long)obj);
>      }
>
>      if (obj) {
>


More information about the mesa-dev mailing list