Topic Development / Developer's Corner / rev d6d583c5c753 -> errors and potentially dangerous warning
The - at this moment - latest changeset (d6d583c5c753) compiled with two errors for me, that were easily solvable:
2x missing std::move, one in src/lib/StdCompiler.h:495:37 and another in src/control/C4Control.cpp:842:13.
A few warnings about deprecated function usage appeared, and one warning about a cast to pointer from integer of different size in src/editor/C4PropertyDlg.cpp:178:32. The argument-type (right now int) should probably be intptr_t, though I don't know the context the function IsObjectPointer is used in and it might be just fine; in that case you could use a reinterpret_cast, which will have the effect that the warning will not appear.
I compiled with a 64-bit g++ trunk version (4.6.0 20101120) if that information is of any interest.
2x missing std::move, one in src/lib/StdCompiler.h:495:37 and another in src/control/C4Control.cpp:842:13.
A few warnings about deprecated function usage appeared, and one warning about a cast to pointer from integer of different size in src/editor/C4PropertyDlg.cpp:178:32. The argument-type (right now int) should probably be intptr_t, though I don't know the context the function IsObjectPointer is used in and it might be just fine; in that case you could use a reinterpret_cast, which will have the effect that the warning will not appear.
I compiled with a 64-bit g++ trunk version (4.6.0 20101120) if that information is of any interest.
Topic Development / Developer's Corner / rev d6d583c5c753 -> errors and potentially dangerous warning
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill