From: Marius Vlad Subject: Re: [PACTH i-g-t v1] lib/igt_gt: Fix unused variable warning for non-x86 targets Date: Mon, 4 Jul 2016 17:35:35 +0300 Message-ID: <20160704143535.GD5601@mcvlad-wk.rb.intel.com> References: <1467025104-32155-1-git-send-email-robert.foss@collabora.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0137249298==" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 6BFBA6E454 for ; Mon, 4 Jul 2016 14:31:25 +0000 (UTC) In-Reply-To: <1467025104-32155-1-git-send-email-robert.foss@collabora.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: robert.foss@collabora.com Cc: daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org, tomeu.vizoso@collabora.com, daniel.stone@collabora.com List-Id: intel-gfx@lists.freedesktop.org --===============0137249298== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rz+pwK2yUstbofK6" Content-Disposition: inline --rz+pwK2yUstbofK6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Applied. On Mon, Jun 27, 2016 at 06:58:24AM -0400, robert.foss@collabora.com wrote: > From: Robert Foss >=20 > Moved variable declaration inside #if case to avoid unused variable warni= ngs > on non-x86 targets. >=20 > Signed-off-by: Robert Foss > --- > lib/igt_gt.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > 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; > =20 > #if defined(__x86_64__) || defined(__i386__) > +static unsigned int clflush_size; > + > int igt_setup_clflush(void) > { > FILE *file; > --=20 > 2.7.4 >=20 --rz+pwK2yUstbofK6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXenQ3AAoJELmLWIAQzyE+jYAH/2geyI78mv05doWLagmLQhHE WSsMYsDFTpJgEsOwzFIx9qjRN4V4BwvFgcPc0NYs5waYBVfE2ZLTdHIl6pj8oNTg dnLJWIhhANPmje6xsAYopjWc/oiLeBEqw27bELmb1tJ0A266dIteJJhX3tCr7ZDd NtMMwgEtRjJQYPckT9xorUEfyK9Th47zsjGBhxE4OCZ/fhZ5xyo2g55lz2IjmrA6 e2QMly2D8TE06NJd45ZSTPaf8BpyxNJixwHIELYi8xSMNTGt+1c54W/YGzwp/831 DGx8dAdpK8WuGENGilK0ZKpG0dnXh7+i0nUomikFK/m3sfiJfylWRNFXz4rUFXI= =I88M -----END PGP SIGNATURE----- --rz+pwK2yUstbofK6-- --===============0137249298== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============0137249298==--