diff options
author | Rob Clark <robclark@freedesktop.org> | 2016-08-02 16:16:02 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2016-08-02 16:22:45 -0400 |
commit | b214b05ccd433c484a6a65e491a1a51b19e4811d (patch) | |
tree | f0704c06633f10660ad16efe70bde0b9b59d8cfb /tests/tegra | |
parent | f19cd3a52827a2368040649c2fc5e7e75db10d08 (diff) |
list: fix an issue with android build using clang
Sorry, I don't understand the android build system enough to say *which*
version of clang this effects, but either "clang-2812033" or
"clang-3016494" (probably the later).
But when 'sample' is undefined (ie. unitialized variable), the result is
not as well defined as it is with gcc. Instead use a typeof() cast with
a defined value (ie. zero).
This fixes a crash that was reported on android.
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'tests/tegra')
0 files changed, 0 insertions, 0 deletions