emacs-devel
[Top][All Lists]
Advanced

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

Re: Anyone building Emacs trunk with MinGW w64 (32 bits)


From: rzl24ozi
Subject: Re: Anyone building Emacs trunk with MinGW w64 (32 bits)
Date: Wed, 27 Mar 2013 17:17:38 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

Sorry for late reply,

>   editfns.c: In function 'format_time_string':
>   editfns.c:1793:32: warning: pointer/integer type mismatch in conditional 
> expression [enabled by default]
>   editfns.c: In function 'Fdecode_time':
>   editfns.c:1844:16: warning: assignment makes pointer from integer without a 
> cast [enabled by default]
>   editfns.c: In function 'Fcurrent_time_string':
>   editfns.c:2011:6: warning: assignment makes pointer from integer without a 
> cast [enabled by default]
>
> This sounds like the prototypes of gmtime and/or localtime are not
> visible to the compiler at this point.  But how can that happen, when
> ms-w32.h, included by config.h, includes time.h which declares these 2
> functions?

I found that localtime is defined to sys_localtime in ms-w32.h.
Because time.h is included before this definition, prototype is not
changed to sys_localtime.

When I move "#include <time.h>" after "#define localtime sys_localtime",
it seems that these warnings disappear.



reply via email to

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