UIKit0 / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

A lot of warning C4512 when compiling with VC10 #294

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download Alembic 1.1.1 or 1.1.2
2. Compile Alembic with VS 2010 SP1

What is the expected output? What do you see instead?
There are lots of warning C4512:
...\Alembic-1.1.2_2012101900\include\Alembic\Abc\Argument.h(209) : warning 
C4512: 'Alembic::Abc::v4::Argument' : assignment operator could not be generated
        ...\Alembic-1.1.2_2012101900\include\Alembic\Abc\Argument.h(110) : see declaration of 'Alembic::Abc::v4::Argument'

What version of the product are you using? On what operating system?
Alembic 1.1.2
Win7 x64
VS 2010 SP1

Please provide any additional information below.
This warning occurs many times so it's quite annoying.
Thanks!

Original issue reported on code.google.com by shinc...@gmail.com on 23 Oct 2012 at 9:17

GoogleCodeExporter commented 9 years ago
I saw the warning when compiling AbcImport and AbcExport.
Manually adding an "operator =()" would fix the warning.

Original comment by shinc...@gmail.com on 23 Oct 2012 at 9:23

GoogleCodeExporter commented 9 years ago
After you added that operator were there any other warnings?

Original comment by miller.lucas on 23 Oct 2012 at 4:21

GoogleCodeExporter commented 9 years ago
I added "const Argument& operator= (const Argument&);" to the private section 
of Argument class. C4512 is gone.

There are 5 cast warnings left:
...\AbcImport\AlembicNode.cpp(347) : warning C4244: '=' : conversion from 
'double' to 'float', possible loss of data
...\AbcImport\AlembicNode.cpp(414) : warning C4244: 'argument' : conversion 
from 'const double' to 'float', possible loss of data
...\AbcImport\CreateSceneHelper.cpp(204) : warning C4267: 'argument' : 
conversion from 'size_t' to 'unsigned int', possible loss of data
...\AbcImport\CreateSceneHelper.cpp(280) : warning C4267: 'argument' : 
conversion from 'size_t' to 'unsigned int', possible loss of data
...\AbcExport\MayaNurbsCurveWriter.cpp(280) : warning C4244: 'argument' : 
conversion from 'double' to 'const float', possible loss of data

Thanks!

Original comment by shinc...@gmail.com on 25 Oct 2012 at 3:01

GoogleCodeExporter commented 9 years ago
Hopefully these 2 will reduce the warnings:

http://code.google.com/r/millerlucas-dev/source/detail?r=2a3c9b7b281fa8ff9f426d5
8b8ea43cf531cd65d

http://code.google.com/r/millerlucas-dev/source/detail?r=1b9b1e0b74a073fc3b118eb
3115bb750df0da836

Original comment by miller.lucas on 20 Nov 2012 at 12:38

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 14 Feb 2013 at 9:08