build failure on i686: error: invalid conversion and no matching function

Luke Benes lukebenes at
Wed Nov 27 13:20:50 UTC 2019

    Related: tdf#126043 use fastest png compression ratio

Does actually hurt:) It's causing the following error on x86 builds:

[CXX] vcl/unx/gtk3/gtk3gtkinst.cxx
/core/include/cppu/unotype.hxx: In instantiation of ‘static const com::sun::star::uno::Type& cppu::UnoType< <template-parameter-1-1> >::get() [with T = int]’:
/core/include/cppu/unotype.hxx:321:37:   required from ‘const com::sun::star::uno::Type& cppu::getTypeFavourUnsigned(const T*) [with T = int]’
/core/include/com/sun/star/uno/Any.hxx:276:55:   required from ‘void com::sun::star::uno::operator<<=(com::sun::star::uno::Any&, const C&) [with C = int]’
/core/vcl/unx/gtk3/gtk3gtkinst.cxx:2934:34:   required from here
/core/include/cppu/unotype.hxx:296:38: error: no matching function for call to ‘cppu_detail_getUnoType(T1*)’
  296 |         return cppu_detail_getUnoType(static_cast< T1 * >(0));
      |                ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/core/include/cppu/unotype.hxx:161:1: note: candidate: ‘const com::sun::star::uno::Type& cppu::detail::cppu_detail_getUnoType(const sal_Int32*)’ <near match>
  161 | cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_Int32 const *) {
      | ^~~~~~~~~~~~~~~~~~~~~~
/core/include/cppu/unotype.hxx:161:1: note:   conversion of argument 1 would be ill-formed:
/core/include/cppu/unotype.hxx:296:38: error: invalid conversion from ‘T1*’ {aka ‘int*’} to ‘const sal_Int32*’ {aka ‘const long int*’} [-fpermissive]
  296 |         return cppu_detail_getUnoType(static_cast< T1 * >(0));
      |                ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
      |                                      |
      |                                      T1* {aka int*}

full build log:


More information about the LibreOffice mailing list