Warning C4312: 'reinterpret_cast' , unknown
I've made a Qt project that uses several files. It works but during the compilation, for each file i've modified, i got this warning :
c:\qt\4.7.2\src\gui\text\qtextoption.h(159) : warning C4312: 'reinterpret_cast' : conversion from 'quintptr' to 'QTextOption::Tab *' of greater size
I don't understand what's wrong and I can't find the same warning anywhere on the internet.
Has anyone seen that before?
Looks like there is something fishy about the version of Qt you are using, the environment it runs in and / or the compiler you are using, with regards to 32 / 64 bits. If I understand the documentation correctly, quintptr should be 32 bits on a 32 bit platform and 64 bits on a 64 bit platform, so the conversion should be OK.
This might be the reason, i got problems with 32/64 during the installation of Qt.
You are talking about "the documentation ", where did you find something aboout quintptr.
It might be usefull for some future problems.
For some reason it does not show up when you search for it on the documentation main page, but you can find it by clicking the "Global Declarations":http://doc.qt.nokia.com/4.7-snapshot/qtglobal.html link on the left.
Did you check MSDN: http://msdn.microsoft.com/en-us/library/h97f4b9y(v=vs.80).aspx
I didn't know about "Global Declarations" and I've never heard about Global Declarations .
Now I think I understand the warning. Thanks.