Re: Help with Rawhide build error with GCC 6.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 3, 2016 at 11:15 AM, Florian Weimer <fweimer@xxxxxxxxxx> wrote:
On 02/03/2016 05:59 PM, Richard Shaw wrote:

> In member function 'void OpenImageIO::v1_6::pugi::xml_document::create()':
> /builddir/build/BUILD/oiio-Release-1.6.9/src/include/OpenImageIO/pugixml.cpp:5143:58:
> error: placement new constructing an object of type
> 'OpenImageIO::v1_6::pugi::impl::xml_document_struct' and size '44' in a
> region of type 'char [1]' and size '1' [-Werror=placement-new]
>    _root = new (page->data) impl::xml_document_struct(page);

It's the use of char data[1] as a flexible array member.  I'm not sure
if this is valid C++.  Warning about it is certainly appropriate.

I passed your suggestions on to upstream, they're usually pretty responsive. 

Thanks!
Richard 
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux