From: jsg Date: Thu, 13 Sep 2018 03:38:15 +0000 (+0000) Subject: avoid sequence-point warning with gcc 4.9 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=63ed879aab3bb3544c5ec0409d166e3e5035c1f0;p=openbsd avoid sequence-point warning with gcc 4.9 ok kettenis@ --- diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c index 638f105adc7..017d4ea943c 100644 --- a/sys/dev/pci/drm/i915/i915_gem.c +++ b/sys/dev/pci/drm/i915/i915_gem.c @@ -2777,7 +2777,7 @@ i915_gem_object_get_pages_gtt(struct drm_i915_gem_object *obj) TAILQ_FOREACH(page, &plist, pageq) { st->nents++; sg_dma_address(sg) = VM_PAGE_TO_PHYS(page); - sg_dma_len(sg) = sg->length = PAGE_SIZE; + sg_dma_len(sg) = PAGE_SIZE; sg++; i++; }