PDA

View Full Version : nagging warning during compile



davisjamesf
28th June 2007, 22:11
I'm using Qt4.3 in Visual Studio 2003. When I compile my program, I keep getting warnings typical to:

...include\QtCore\qatomic_windows.h(148) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'

and

...include\QtCore\qatomic_windows.h(148) : warning C4312: 'reinterpret_cast' : conversion from 'long' to void *' of greater size

The program compiles with no errors and runs fine.

Anyone know how to get rid of these warnings?

jpn
28th June 2007, 22:36
Relevant Task-Tracker entries:

96643 - Compiler warning when compiling with 64bit porting warnings (http://trolltech.com/developer/task-tracker/index_html?method=entry&id=96643)
129468 - C4311 and C4312 warnings messages when compiling Qt application on Windows 64 bit (http://trolltech.com/developer/task-tracker/index_html?method=entry&id=129468)