From 9715bf95967d271c925b294e8166563049a06b53 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 5 Feb 2020 15:38:42 +0900 Subject: 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 --- intel/test_decode.c | 5 +++-- 1 file 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); -- cgit v1.2.3