intel: Only define variable when it's used.
authorThomas Klausner <wiz@NetBSD.org>
Sun, 30 Mar 2014 12:22:26 +0000 (14:22 +0200)
committerMaarten 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

index d7025f0..93f47ef 100644 (file)
@@ -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;