diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2014-03-30 14:22:26 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@ubuntu.com> | 2015-01-26 10:08:42 +0100 |
commit | 63d6d7736cbf4ff350aeea84a33aaa0172a0c58d (patch) | |
tree | 0e67b268227a4e01e7fc566ac66615131903a1c9 | |
parent | 87fdd32c87796482638de54988027d0aca0c4f12 (diff) |
intel: Only define variable when it's used.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
-rw-r--r-- | intel/test_decode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intel/test_decode.c b/intel/test_decode.c index d7025f03..93f47efc 100644 --- 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; |