Oh, I get it!
In the main CMakeLists, circa line 88 in RB-1.4 (and line 94 in master), it says
add_definitions ("-Wunused-local-typedefs")
But this is backwards. I think we want
add_definitions ("-Wno-unused-local-typedefs")
Richard, can you give that a quick try on your end and see if it suppresses the
warnings? If so, I'll add it on my end.
On Nov 25, 2014, at 7:56 AM, Larry Gritz <[email protected]> wrote:
> There must be something in 'BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS' that's
> triggering the warning.
>
> Which Boost version are you using? And which gcc?
>
> I suppose we should fix it by using the -Wno-unused-local-typedefs, just to
> suppress the error.
>
>
> On Nov 25, 2014, at 5:48 AM, Richard Shaw <[email protected]> wrote:
>
>> Larry, I think I've been getting this for some time but caught it while
>> watching the build output...
>>
>> I get a bunch of these (42 to be exact) during compilation:
>> cd
>> /home/build/rpmbuild/OpenImageIO/BUILD/oiio-Release-1.4.15/build/linux/src/python
>> && /usr/lib64/ccache/c++ -DNDEBUG -DOIIO_PYMODULE_NAME=OpenImageIO
>> -DPyOpenImageIO_EXPORTS -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FIELD3D=1
>> -DUSE_FREETYPE -DUSE_OCIO=1 -DUSE_OPENSSL=1 -D__STDC_LIMIT_MACROS -O2 -g
>> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
>> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -g
>> -DNDEBUG -fPIC -I/usr/include/OpenEXR -I/usr/include/libraw
>> -I/home/build/rpmbuild/OpenImageIO/BUILD/oiio-Release-1.4.15/src/include
>> -I/home/build/rpmbuild/OpenImageIO/BUILD/oiio-Release-1.4.15/build/linux/include/OpenImageIO
>> -I/usr/include/python2.7 -Wall -Werror -Wno-error=unused-local-typedefs
>> -Wunused-local-typedefs -o CMakeFiles/PyOpenImageIO.dir/py_roi.cpp.o -c
>> /home/build/rpmbuild/OpenImageIO/BUILD/oiio-Release-1.4.15/src/python/py_roi.cpp
>> /home/build/rpmbuild/OpenImageIO/BUILD/oiio-Release-1.4.15/src/python/py_imageoutput.cpp:
>> In constructor
>> 'PyOpenImageIO::ImageOutputWrap_write_image_overloads::ImageOutputWrap_write_image_overloads(const
>> char*, const boost::python::detail::keywords<nkeywords>&)':
>> /home/build/rpmbuild/OpenImageIO/BUILD/oiio-Release-1.4.15/src/python/py_imageoutput.cpp:218:2173:
>> warning: typedef 'assertion' locally defined but not used
>> [-Wunused-local-typedefs]
>>
>> BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(ImageOutputWrap_write_image_overloads,
>>
>> There's also a BUNCH of blank lines after each one until it gives the "^"
>> showing the location of the problem?
>>
>> Thanks,
>> Richard
>> _______________________________________________
>> Oiio-dev mailing list
>> [email protected]
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
> --
> Larry Gritz
> [email protected]
>
>
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org