[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH 01/30] Fix clang warning for ntohl(*((uint32_t *)buf))



At Mon, 25 Oct 2010 10:24:08 +0200,
Zdenek Kabelac wrote:
> 
> We cast (char*) to (uint32_t*) that changes alignment requierements.
> For our case the code has been correct as alloca() returns properly
> aligned buffer, however this patch make it cleaner and more readable
> and avoids warning generation.
> 
> FIXME: code duplication
> 
> Signed-off-by: Zdenek Kabelac <zkabelac redhat com>

Ack


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]