All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Klausner <wiz@NetBSD.org>
To: dri-devel@lists.freedesktop.org
Cc: Thomas Klausner <wiz@NetBSD.org>
Subject: [PATCH:drm 1/4] intel: Only define variable when it's used.
Date: Sun, 20 Jul 2014 10:26:31 +0200	[thread overview]
Message-ID: <1405844794-27210-1-git-send-email-wiz@NetBSD.org> (raw)

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-20  8:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <sfid-H20140720-102701-+048.63-1@spamfilter.osbf.lua>
2014-07-20  8:26 ` Thomas Klausner [this message]
2014-07-20  8:26   ` [PATCH:drm 2/4] nouveau: Remove unused static function Thomas Klausner
2014-07-20  8:26   ` [PATCH:drm 3/4] Add NetBSD atomic ops support Thomas Klausner
2014-07-20  8:26   ` [PATCH:drm 4/4] Fix libdrm's atomic_dec_and_test on Solaris Thomas Klausner
2014-08-05  9:12   ` [PATCH:drm 1/4] intel: Only define variable when it's used Thomas Klausner
2014-09-29 12:10     ` Thomas Klausner

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=1405844794-27210-1-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.