[PATCH:drm 2/4] Only define variable when it's used.
walter harms
wharms at bfs.de
Sat Jul 12 08:26:19 PDT 2014
Acked-by: wharms <wharms at bfs.de>
Am 30.03.2014 14:26, schrieb Thomas Klausner:
> Signed-off-by: Thomas Klausner <wiz at 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;
>
More information about the xorg-devel
mailing list