m4-patches
[Top][All Lists]
Advanced

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

Re: module/time.c violates aliasing rules


From: Eric Blake
Subject: Re: module/time.c violates aliasing rules
Date: Thu, 8 Jun 2006 13:14:09 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Andreas Schwab <schwab <at> suse.de> writes:

> 
> modules/time.c: In function 'builtin_ctime':
> modules/time.c:100: warning: dereferencing type-punned pointer will break
strict-aliasing rules
> 
> This is guaranteed to fail on bigendian hosts with time_t > int.

Thanks for the report.  This patch is probably small enough to apply, but would
you be willing to fill out copyright assignment for future patches?  This,
combined with your previous submissions, is starting to become non-trivial.

> 
> 2006-06-05  Andreas Schwab  <schwab <at> suse.de>
> 
>       * modules/time.c (ctime): Pass correctly typed variable to
>       m4_numeric_arg.
>       (gmtime): Likewise.
>       (localtime): Likewise.
>       (strftime): Likewise.

-- 
Eric Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]