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

Bug#984215: libwpd: ftbfs with GCC-11



tag 984215 + patch

thanks


Hi,

Am 03.03.21 um 17:15 schrieb Matthias Klose:
> In file included from WPXContentListener.h:29,
>                  from WPXContentListener.cpp:26:
> WPXTable.h:56:30: error: expected ‘;’ at end of member declaration
>    56 |         const WPXTableCell  *getCell(size_t i, size_t j)
>       |                              ^~~~~~~
>       |                                     ;
> WPXTable.h:56:44: error: expected ‘)’ before ‘i’
>    56 |         const WPXTableCell  *getCell(size_t i, size_t j)
>       |                                     ~      ^~
>       |                                            )
> WPXTable.h:49:7: warning: ‘class WPXTable’ has pointer data members [-Weffc++]
>    49 | class WPXTable
>       |       ^~~~~~~~
> WPXTable.h:49:7: warning:   but does not declare ‘WPXTable(const WPXTable&)’ [-Weffc++]
> WPXTable.h:49:7: warning:   or ‘operator=(const WPXTable&)’ [-Weffc++]
> WPXTable.h:56:30: note: pointer member ‘WPXTable::getCell’ declared here
>    56 |         const WPXTableCell  *getCell(size_t i, size_t j)
>       |                              ^~~~~~~
> WPXTable.h: In constructor ‘WPXTable::WPXTable()’:
> WPXTable.h:52:9: warning: ‘WPXTable::getCell’ should be initialized in the member initialization list [-Weffc++]
>    52 |         WPXTable() : m_tableRows() {}
>       |         ^~~~~~~~
> make[4]: *** [Makefile:1209: WPXContentListener.lo] Error 1
> make[4]: *** Waiting for unfinished jobs....
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../../inc -I/usr/include/librevenge-0.0 -DNDEBUG -DLIBWPD_BUILD=1 -fvisibility=hidden -DLIBWPD_VISIBILITY -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++ -c WPDocument.cpp  -fPIC -DPIC -o WPDocument.o >/dev/null 2>&1
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/lib'
> make[3]: *** [Makefile:383: all-recursive] Error 1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
> make[2]: *** [Makefile:496: all-recursive] Error 1
> make[2]: Leaving directory '/<<PKGBUILDDIR>>'
> make[1]: *** [Makefile:407: all] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:27: build-arch-stamp] Error 2
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
>
Looks like
https://cgit.freedesktop.org/libreoffice/core/commit/?id=8d378abf1de0a47517427c086da26588f846592a


Regards,


Rene


Reply to: