diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2020-02-05 15:38:42 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2020-02-24 10:56:05 +0900 |
commit | 9715bf95967d271c925b294e8166563049a06b53 (patch) | |
tree | 72fc20c696e6ef384f502051f7d59f3c1eab2c59 | |
parent | 7ea9faa09fff7e9783dc3d0149704d2f3a4fc640 (diff) | |
download | libdrm-9715bf95967d271c925b294e8166563049a06b53.tar.gz libdrm-9715bf95967d271c925b294e8166563049a06b53.tar.bz2 libdrm-9715bf95967d271c925b294e8166563049a06b53.zip |
intel: Fix type pruned cast
Fix build waring about type pruned cast in test_decode.c.
Change-Id: Iceea47c4a87c9db9d31a8a3c9e913a7407152e0a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | intel/test_decode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/intel/test_decode.c b/intel/test_decode.c index b9f5b927..c47752c9 100644 --- a/intel/test_decode.c +++ b/intel/test_decode.c @@ -86,7 +86,8 @@ static void compare_batch(struct drm_intel_decode *ctx, const char *batch_filename) { FILE *out = NULL; - void *ptr, *ref_ptr, *batch_ptr; + char *ptr; + void *ref_ptr, *batch_ptr; #if HAVE_OPEN_MEMSTREAM size_t size; #endif @@ -106,7 +107,7 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename) * inside of an automake project's test infrastructure. */ #if HAVE_OPEN_MEMSTREAM - out = open_memstream((char **)&ptr, &size); + out = open_memstream(&ptr, &size); #else fprintf(stderr, "platform lacks open_memstream, skipping.\n"); exit(77); |