Re: Yaml related warning message when compiling OCIO


dbr/Ben <dbr....@...>
 

Belated reply, but, those warnings can (hopefully) be ignored if you are just building OCIO

The problem is because "Config::getNumEnvironmentVars" returns an "int", when it should probably return an "unsigned int" (because there can't possibly be negative number of env-vars). The warning occurs because comparing int with unsigned int can act in strange ways (like claiming -5 is greater than 2)

On 01/05/2014, at 4:41 AM, etienne....@... wrote:

Hi,

I get a Yaml related warning message when building OCIO (branch: master 64adcad300adfd166280d2e7b1fb5c3ce7dca482)

I'm on CentOS 6.5, and here's my cmake log:
Python library: /usr/lib64/python2.6/config/libpython2.6.so
Create sphinx conf.py from conf.py.in
Copying doc to staging area
Copy extra doc files to staging area
Extracting .rst files from C++ headers
Create OpenColorABI.h from OpenColorABI.h.in
Setting OCIO SOVERSION to: 1
Setting OCIO SOVERSION to: 1
Create OpenColorIO.pc from OpenColorIO.pc.in
OIIO not found. Specify OIIO_PATH to locate it
Found OpenGL library /usr/lib64/libGLU.so;/usr/lib64/libGL.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so
Found OpenGL includes /usr/include
Found GLUT library /root/pipe_ready/utils/freeglut/2.8.1/lib/libglut.a;/root/pipe_ready/utils/libXmu/1.1.1/lib/libXmu.a;/root/pipe_ready/utils/libXi/1.6.2/lib/libXi.a
Found GLEW library /root/pipe_ready/utils/glew/1.10.0/lib/libGLEW.a
Found GLEW includes /root/pipe_ready/utils/glew/1.10.0/include
PYTHON_VARIANT_PATH: lib/python2.6/site-packages
Configuring done
Generating done

Here's the warning message:


[ 87%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/OCIOYaml.cpp.o
In file included from /root/OpenColorIO-master/dist/ext/dist/include/yaml-cpp/emitter.h:10,
                 from /root/OpenColorIO-master/dist/ext/dist/include/yaml-cpp/yaml.h:9,
                 from /root/OpenColorIO-master/src/core/OCIOYaml.cpp:70:
/root/OpenColorIO-master/dist/ext/dist/include/yaml-cpp/binary.h: In constructor ‘YAML::Binary::Binary(const unsigned char*, size_t)’:
/root/OpenColorIO-master/dist/ext/dist/include/yaml-cpp/binary.h:21: warning: declaration of ‘size’ shadows a member of 'this'
/root/OpenColorIO-master/dist/ext/dist/include/yaml-cpp/binary.h:21: warning: declaration of ‘data’ shadows a member of 'this'
/root/OpenColorIO-master/src/core/OCIOYaml.cpp: In function ‘void OpenColorIO::v1::<unnamed>::save(YAML::Emitter&, const OpenColorIO::v1::Config*)’:
/root/OpenColorIO-master/src/core/OCIOYaml.cpp:1668: warning: comparison between signed and unsigned integer expressions
/root/OpenColorIO-master/src/core/OCIOYaml.cpp:1699: warning: comparison between signed and unsigned integer expressions
/root/OpenColorIO-master/src/core/OCIOYaml.cpp:1714: warning: comparison between signed and unsigned integer expressions
/root/OpenColorIO-master/src/core/OCIOYaml.cpp:1719: warning: comparison between signed and unsigned integer expressions
/root/OpenColorIO-master/src/core/OCIOYaml.cpp:1757: warning: comparison between signed and unsigned integer expressions
/root/OpenColorIO-master/src/core/OCIOYaml.cpp:1771: warning: comparison between signed and unsigned integer expressions
[ 87%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/LookParse.cpp.o
...
[100%] Building CXX object src/apps/ociobakelut/CMakeFiles/ociobakelut.dir/ocioicc.cpp.o
Linking CXX executable ociobakelut
[100%] Built target ociobakelut


I'm wondering if I should be concerned with that message or just ignore it because as you can see the build completes.

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "OpenColorIO Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocio-dev+u...@....
For more options, visit https://groups.google.com/d/optout.

Join ocio-dev@lists.aswf.io to automatically receive all group messages.