Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2015 02:34:43 +0000
From:      "araujo (Marcelo Araujo)" <phabric-noreply@FreeBSD.org>
To:        freebsd-toolchain@freebsd.org
Subject:   [Differential] [Closed] D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules
Message-ID:  <0f41e70afccfbeb6c8b0d2f2b1dde6ac@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-5wjobtbl22co3qb2erjl-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-5wjobtbl22co3qb2erjl-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--b1_0f41e70afccfbeb6c8b0d2f2b1dde6ac
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: 8bit

This revision was automatically updated to reflect the committed changes.
Closed by commit rS285618: Fix a warning spotted by gcc4.9: dereferencing type-punned pointer will break (authored by araujo).

REPOSITORY
  rS FreeBSD src repository

CHANGES SINCE LAST UPDATE
  https://reviews.freebsd.org/D2690?vs=6875&id=6989

REVISION DETAIL
  https://reviews.freebsd.org/D2690

AFFECTED FILES
  head/usr.sbin/ypbind/ypbind.c

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: araujo, bapt, emaste, dim, rodrigc
Cc: imp, freebsd-toolchain-list

--b1_0f41e70afccfbeb6c8b0d2f2b1dde6ac
Content-Type: text/x-patch; charset=utf-8; name="D2690.6989.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D2690.6989.patch"

ZGlmZiAtLWdpdCBhL2hlYWQvdXNyLnNiaW4veXBiaW5kL3lwYmluZC5jIGIvaGVhZC91c3Iuc2Jp
bi95cGJpbmQveXBiaW5kLmMKLS0tIGEvaGVhZC91c3Iuc2Jpbi95cGJpbmQveXBiaW5kLmMKKysr
IGIvaGVhZC91c3Iuc2Jpbi95cGJpbmQveXBiaW5kLmMKQEAgLTEwNiwxNiArMTA2LDE2IEBACiB2
b2lkCXl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CAq
KSZ5YnIueXBiaW5kX3Jlc3BfdS55cGJpbmRfYmluZGluZm8ueXBiaW5kX2JpbmRpbmdfYWRkciA9
IHJhZGRycC0+c2luX2FkZHIuc19hZGRyOwotCSoodV9zaG9ydCAqKSZ5YnIueXBiaW5kX3Jlc3Bf
dS55cGJpbmRfYmluZGluZm8ueXBiaW5kX2JpbmRpbmdfcG9ydCA9IHJhZGRycC0+c2luX3BvcnQ7
CisJbWVtY3B5KCZ5YnIueXBiaW5kX3Jlc3BfdS55cGJpbmRfYmluZGluZm8ueXBiaW5kX2JpbmRp
bmdfYWRkciwKKwkgICAgJnJhZGRycC0+c2luX2FkZHIuc19hZGRyLCBzaXplb2YodV9pbnQzMl90
KSk7CisJbWVtY3B5KCZ5YnIueXBiaW5kX3Jlc3BfdS55cGJpbmRfYmluZGluZm8ueXBiaW5kX2Jp
bmRpbmdfcG9ydCwKKwkgICAgJnJhZGRycC0+c2luX3BvcnQsIHNpemVvZih1X3Nob3J0KSk7CiAK
IAlpZiAod3JpdGV2KHlwZGItPmRvbV9sb2NrZmQsIGlvdiwgMikgIT0gaW92WzBdLmlvdl9sZW4g
KyBpb3ZbMV0uaW92X2xlbikgewogCQlzeXNsb2coTE9HX1dBUk5JTkcsICJ3cml0ZTogJW0iKTsK
Cg==


--b1_0f41e70afccfbeb6c8b0d2f2b1dde6ac--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0f41e70afccfbeb6c8b0d2f2b1dde6ac>