[Intel-gfx] [PACTH i-g-t v1] lib/igt_gt: Fix unused variable warning for non-x86 targets

Marius Vlad marius.c.vlad at intel.com
Mon Jul 4 14:35:35 UTC 2016


Applied.
On Mon, Jun 27, 2016 at 06:58:24AM -0400, robert.foss at collabora.com wrote:
> From: Robert Foss <robert.foss at collabora.com>
> 
> Moved variable declaration inside #if case to avoid unused variable warnings
> on non-x86 targets.
> 
> Signed-off-by: Robert Foss <robert.foss at collabora.com>
> ---
>  lib/igt_gt.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/igt_gt.c b/lib/igt_gt.c
> index a3d6a73..8a53775 100644
> --- a/lib/igt_gt.c
> +++ b/lib/igt_gt.c
> @@ -383,9 +383,10 @@ int igt_open_forcewake_handle(void)
>  		return -1;
>  	return igt_debugfs_open("i915_forcewake_user", O_WRONLY);
>  }
> -static unsigned int clflush_size;
>  
>  #if defined(__x86_64__) || defined(__i386__)
> +static unsigned int clflush_size;
> +
>  int igt_setup_clflush(void)
>  {
>  	FILE *file;
> -- 
> 2.7.4
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160704/c344ac52/attachment.sig>


More information about the Intel-gfx mailing list