summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2020-02-05 15:38:42 +0900
committerHoegeun Kwon <hoegeun.kwon@samsung.com>2020-12-08 17:41:51 +0900
commitff6d0c64cf510586f6795819280a9ea180868079 (patch)
tree3f77c98cecf80b52d0c777eac28a7a6b86545bc2
parentb168e36669a193ef18bff725d6c3f9c6654b37a9 (diff)
downloadlibdrm-ff6d0c64cf510586f6795819280a9ea180868079.tar.gz
libdrm-ff6d0c64cf510586f6795819280a9ea180868079.tar.bz2
libdrm-ff6d0c64cf510586f6795819280a9ea180868079.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.c5
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);