radv: fix compiler issues with GCC 9
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 Feb 2019 09:17:52 +0000 (10:17 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 12 Feb 2019 13:48:08 +0000 (14:48 +0100)
commit129a9f4937b8f2adb4d37999677d748d816d611c
tree092cd8eedf2f98bde4991f50f90955ba142ce976
parent2a2e69f975bd791d64a88553d5b1d5eda7e8abdf
radv: fix compiler issues with GCC 9

"The C standard says that compound literals which occur inside of
the body of a function have automatic storage duration associated
with the enclosing block. Older GCC releases were putting such
compound literals into the scope of the whole function, so their
lifetime actually ended at the end of containing function. This
has been fixed in GCC 9. Code that relied on this extended lifetime
needs to be fixed, move the compound literals to whatever scope
they need to accessible in."

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109543
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Gustaw Smolarczyk <wielkiegie@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_blit.c