projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87fdd32
)
intel: Only define variable when it's used.
author
Thomas Klausner
<wiz@NetBSD.org>
Sun, 30 Mar 2014 12:22:26 +0000
(14:22 +0200)
committer
Maarten Lankhorst
<maarten.lankhorst@ubuntu.com>
Mon, 26 Jan 2015 09:08:42 +0000
(10:08 +0100)
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
intel/test_decode.c
patch
|
blob
|
history
diff --git
a/intel/test_decode.c
b/intel/test_decode.c
index
d7025f0
..
93f47ef
100644
(file)
--- a/
intel/test_decode.c
+++ b/
intel/test_decode.c
@@
-91,7
+91,10
@@
compare_batch(struct drm_intel_decode *ctx, const char *batch_filename)
{
FILE *out = NULL;
void *ptr, *ref_ptr, *batch_ptr;
- size_t size, ref_size, batch_size;
+#ifdef HAVE_OPEN_MEMSTREAM
+ size_t size;
+#endif
+ size_t ref_size, batch_size;
const char *ref_suffix = "-ref.txt";
char *ref_filename;