aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2019-02-01 13:15:41 -0700
committerAlex Deucher <[email protected]>2019-02-05 21:15:32 -0500
commitd6d36b55a0f394a3895349285ed6980278809489 (patch)
treea4f3890007319d441e05419aecac0df163defbb9 /tools/perf/util/c++/clang-test.cpp
parentc1219b941c1ff0abc615e471ad81507ddb397253 (diff)
drm/amd/display: Use memset to initialize variable in wait_for_training_aux_rd_interval
Clang warns: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:50:57: warning: suggest braces around initialization of subobject [-Wmissing-braces] union training_aux_rd_interval training_rd_interval = {0}; ^ {} 1 warning generated. Previous efforts to fix this type of warning by adding or removing braces have been met with some pushback in favor of using memset [1][2]. Do that here, mirroring commit 05794eff1aa6 ("drm/amdgpu/gmc: fix compiler errors [-Werror,-Wmissing-braces] (V2)") in this tree. [1]: https://lore.kernel.org/lkml/[email protected]/ [2]: https://lore.kernel.org/lkml/[email protected]/ Fixes: 3cec41769d21 ("drm/amd/display: Fix use of uninitialized union") Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions