From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 3/5] xvmc: Silence gcc, add parentheses around arithmetic. Date: Mon, 31 Jan 2011 09:50:29 +0000 Message-ID: <0d30dc$ktp5h7@orsmga001.jf.intel.com> References: <1296451359-28449-1-git-send-email-kibi@debian.org> <1296451359-28449-3-git-send-email-kibi@debian.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1781984837==" Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 65FC99E78E for ; Mon, 31 Jan 2011 01:50:32 -0800 (PST) In-Reply-To: <1296451359-28449-3-git-send-email-kibi@debian.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Cyril Brulebois , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1781984837== Content-Type: text/plain On Mon, 31 Jan 2011 06:22:37 +0100, Cyril Brulebois wrote: > Get rid of those accordingly with CFLAGS="-Wall -Werror": > | CC i915_xvmc.lo > | cc1: warnings being treated as errors > | i915_xvmc.c: In function ‘i915_mc_one_time_state_emit’: > | i915_xvmc.c:369: error: suggest parentheses around arithmetic in operand of ‘|’ > | i915_xvmc.c:374: error: suggest parentheses around arithmetic in operand of ‘|’ > | i915_xvmc.c:379: error: suggest parentheses around arithmetic in operand of ‘|’ > | i915_xvmc.c: In function ‘i915_mc_load_indirect_render_emit’: > | i915_xvmc.c:708: error: suggest parentheses around arithmetic in operand of ‘|’ > | i915_xvmc.c:713: error: suggest parentheses around arithmetic in operand of ‘|’ Fix the macro instead. diff --git a/src/xvmc/intel_batchbuffer.h b/src/xvmc/intel_batchbuffer.h index 6fa1c05..888abeb 100644 --- a/src/xvmc/intel_batchbuffer.h +++ b/src/xvmc/intel_batchbuffer.h @@ -24,7 +24,7 @@ extern int VERBOSE; #define OUT_RELOC(bo,read_domains,write_domains,delta) \ do { \ - *(unsigned int *)batch_ptr = delta + bo->offset; \ + *(unsigned int *)batch_ptr = (delta) + bo->offset; \ intel_batch_emit_reloc(bo, read_domains, write_domains, delta, batch_pt batch_ptr += 4; \ } while (0) -- Chris Wilson, Intel Open Source Technology Centre --===============1781984837== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1781984837==--