Page 1 of 1

Error during Make operation

Posted: Mon Jul 25, 2011 4:31 pm
by AVBJim
I receive the message

src/cmd/unit_generic.cpp: In member function ‘bool MeshAnimation::Init(const char*, int, Flightgroup*, const char*)’:
src/cmd/unit_generic.cpp:9424:40: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘std::vector<Mesh*, std::allocator<Mesh*> >::size_type’

in the terminal window during Make. It does not stop compilation and if you are not watching, you may miss this message.

My System: Asus M3N78-VM motherboard, AMD Phenom II X4 processor, 4 GB ram, Nvidia GTX560 Ti DCU II video card with 1GB GDDR5 video ram, Ubuntu 11.04 (Natty), kernel Linux 2.6.38-10, make 3.81-8ubuntu1, gcc 4:4.5.2-1ubuntu3, cpp 4:4.5.2-1ubuntu3, boost-build 2.0-m12-2, Vegastrike svn revision 13197

Re: Error during Make operation

Posted: Tue Jul 26, 2011 5:20 pm
by strook
well this code is not used (yet?), cause there are 2 different mesh animation systems in vs.
we came to no conclusion wether to use the new one or not.

also "size_type" is an integer value, it has another name and is only being used for sizes (of arrays, lists etc.)