[Vortex] Microsoft compiler warning

Yourch, Chris chris at replicus.com
Tue Nov 6 23:40:16 CET 2007


Here's a warning I get from the Visual Studio 2005 compiler about the
definition of "struct timezone" in "vortex_win32.h".

 

warning C6244: Local declaration of 'timezone' hides previous
declaration at line '286' of 

c:\program files\microsoft visual studio 8\vc\include\time.h

 

 

Specifically, time.h declares "extern long timezone;" which conflicts
with the "struct timezone" declaration.

 

The fix is to name "struct timezone" something like "struct
timezoneWin32" instead and update the win32 definition of gettimeofday
to use the same struct type. From the Vortex code I can tell that this
should work.

 

 

 

 

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aspl.es/pipermail/vortex/attachments/20071106/552d1aca/attachment.htm 


More information about the Vortex mailing list