dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Klausner <wiz@NetBSD.org>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH:drm 2/4] Only define variable when it's used.
Date: Tue, 15 Jul 2014 19:22:53 +0200	[thread overview]
Message-ID: <1405444975-29236-2-git-send-email-wiz@NetBSD.org> (raw)
In-Reply-To: <1405444975-29236-1-git-send-email-wiz@NetBSD.org>

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
---
 intel/test_decode.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/intel/test_decode.c b/intel/test_decode.c
index b710f34..f9127cf 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -90,7 +90,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;
 
-- 
1.9.4

  reply	other threads:[~2014-07-15 17:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 17:22 [PATCH:drm 1/4] Remove superfluous parentheses Thomas Klausner
2014-07-15 17:22 ` Thomas Klausner [this message]
2014-07-15 17:22 ` [PATCH:drm 3/4] Remove unused static function Thomas Klausner
2014-07-15 17:22 ` [PATCH:drm 4/4] Add missing header includes Thomas Klausner
2014-07-16  3:20 ` [PATCH:drm 1/4] Remove superfluous parentheses Michel Dänzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1405444975-29236-2-git-send-email-wiz@NetBSD.org \
    --to=wiz@netbsd.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox