References: <1475060898-21462-1-git-send-email-steffan@...1856...> From: Arne Schwabe Message-ID: Date: Tue, 18 Oct 2016 13:46:26 +0200 MIME-Version: 1.0 In-Reply-To: <1475060898-21462-1-git-send-email-steffan@...1856...> Subject: Re: [Openvpn-devel] [PATCH] Don't deference type-punned pointers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Steffan Karger , openvpn-devel@lists.sourceforge.net Am 28.09.16 um 13:08 schrieb Steffan Karger: > Fixes compiler warnings (undefined behavior) by making the copy explicit > to comply to strict aliasing rules. With newer GCC the old code could > actually lead to undefined behaviour. > I always considered this to be legal C. But if the spec says otherwise, we should change this. The code does the same thing. So reluctant ACK. Arne