[Mesa-dev] [PATCH] i965: fix build warning on clang
Tapani Pälli
tapani.palli at intel.com
Mon Sep 18 05:38:57 UTC 2017
On 09/15/2017 07:40 PM, Matt Turner wrote:
> On Thu, Sep 14, 2017 at 12:26 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
>> fixes following warning:
>> warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long')
>>
>> cast is needed to avoid this turning in to another warning on 32bit build:
>> warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long')
>>
>> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
>
> Don't you just want to use one of the PRI* format specifiers in inttypes.h?
>
That is true, I did not remember those existed. I pushed this already
but can send a cleanup patch later to use PRIu64.
Thanks;
// Tapani
More information about the mesa-dev
mailing list