[pacman-dev] [patch] add.c: warning: dereferencing type-punned pointer will break strict-aliasing rules

Aaron Griffin aaronmgriffin at gmail.com
Thu Jan 18 11:09:49 EST 2007


On 1/17/07, Dan McGee <dpmcgee at gmail.com> wrote:
> CC lib/libalpm/add.c
> cc1: warnings being treated as errors
> lib/libalpm/add.c: In function '_alpm_add_prepare':
> lib/libalpm/add.c:257: warning: dereferencing type-punned pointer will
> break strict-aliasing rules
> make: *** [lib/libalpm/add.o] Error 1
>
> I think it might only happen if -std=c99 is not on the command line,
> but it seems like an easy fix to me. Let me know if this doesn't seem
> right.
>
> Signed-off-by: Dan McGee <dpmcgee at gmail.com>

Applied.  Thanks.




More information about the pacman-dev mailing list