Eric Engestrom <[email protected]> writes:

> On MacOS, the build fails because of a compiler complaint about
> a downcast:
>
>   vma_random_test.cpp:239:18: error: non-constant-expression cannot be 
> narrowed from type 'unsigned long' to 'uint_fast32_t' (aka 'unsigned int') in 
> initializer list [-Wc++11-narrowing]
>      random_test r{seed};
>                    ^~~~
>   vma_random_test.cpp:239:18: note: insert an explicit cast to silence this 
> issue
>      random_test r{seed};
>                    ^~~~
>                    static_cast<uint_fast32_t>( )
>
> Let's take the compiler's suggestion, as we only needed a long here to
> use strtoul().
>
> Cc: Scott D Phillips <[email protected]>
> Signed-off-by: Eric Engestrom <[email protected]>

This commit seems to have resolved the issue:

commit 08535dd8860951ce4572cd2590e417a1f3d96b3d
Author: Scott D Phillips <[email protected]>
Date:   Tue Jun 5 09:29:43 2018 -0700

    util/tests/vma: Fix warning c++11-narrowing

Attachment: signature.asc
Description: PGP signature

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to