OSDN Git Service

libdrm: amdgpu: Initialize unions with memset rather than "= {0}"
authorJohn Stultz <john.stultz@linaro.org>
Wed, 24 Apr 2019 17:08:38 +0000 (10:08 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 25 Apr 2019 09:57:26 +0000 (10:57 +0100)
commit51553dd0e063cb2d27ad1c68746c247cb6dbd518
treebca8f4afe61cac54091e2d2c6eaf2cb0f4a16bfe
parentebbb8f9cbfc3b51d52e6fe3b146ea824030eb48a
libdrm: amdgpu: Initialize unions with memset rather than "= {0}"

Clang complains when initializing unions using "= {0}"
so instead use memset.

Cc: Sean Paul <seanpaul@chromium.org>
Cc: Alistair Strachan <astrachan@google.com>
Cc: Marissa Wall <marissaw@google.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
amdgpu/amdgpu_cs.c