#30 piklab fails to compile with gcc-4.6

closed-accepted
nobody
None
5
2011-02-12
2011-01-31
Alain Portal
No

piklab fails to compile with gcc-4.6:

In file included from /builddir/build/BUILD/piklab-0.15.10/src/devices/pic/xml/pic_xml_to_data.cpp:13:0:
/builddir/build/BUILD/piklab-0.15.10/src/xml_to_data/device_xml_to_data.h: In member function 'void Device::XmlToData<DataType>::output() [with DataType = Pic::Data]':
/builddir/build/BUILD/piklab-0.15.10/src/devices/pic/xml/pic_xml_to_data.cpp:740:1: instantiated from here
/builddir/build/BUILD/piklab-0.15.10/src/xml_to_data/device_xml_to_data.h:64:7: error: invalid conversion from 'const Pic::Data*' to 'Pic::Data*' [-fpermissive]
/usr/lib64/qt-3.3/include/qvaluelist.h:530:14: error: initializing argument 1 of 'QValueList<T>::iterator QValueList<T>::append(const T&) [with T = Pic::Data*, QValueList<T>::iterator = QValueListIterator<Pic::Data*>]' [-fpermissive]

http://lists.fedoraproject.org/pipermail/devel/2011-January/148260.html

Here is a patch to fix.

Regards,
Alain

Discussion

  • Alain Portal
    Alain Portal
    2011-01-31

    Fix a compile time error with gcc-4.6

     
  • In devel tree.

    Merci Alain.

     
    • status: open --> closed-accepted