aco: Fix -Wstringop-overflow warnings in aco_span.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 21 Jan 2020 12:43:13 +0000 (13:43 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Wed, 22 Jan 2020 10:09:10 +0000 (11:09 +0100)
commit6fb3df2786f09f4c7383cb0a15d394316d240c42
treea688638310e6ee0d16b263d5efe338be46117f5d
parent75e5720e1a64fac116e19cd9a7682b1d0f530149
aco: Fix -Wstringop-overflow warnings in aco_span.

GCC does not understand how aco_span works.
This patch fixes it by casting the aco_span's this pointer
to uintptr_t rather than to a char pointer, effectively
telling GCC not to try to figure it out.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3483>
src/amd/compiler/aco_util.h