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

Bug#957475: libreoffice: ftbfs with GCC-10



forwarded 957475 Stephan Bergmann <sbergman@redhat.com>
thanks

On Fri, Apr 17, 2020 at 11:04:54AM +0000, Matthias Klose wrote:
> In file included from /<<PKGBUILDDIR>>/include/rtl/ustring.hxx:37,                                                                                            
>                  from /<<PKGBUILDDIR>>/include/comphelper/lok.hxx:14,                                                                                         
>                  from /<<PKGBUILDDIR>>/vcl/source/window/builder.cxx:16:                                                                                      
> In constructor ‘rtl::OString::OString(rtl::OStringConcat<T1, T2>&&) [with T1 = rtl::OString; T2 = const char [11]]’,                                          
>     inlined from ‘VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window*, const rtl::OString&, const rtl::OString&, VclBuilder::stringmap&)’ at              
> +/<<PKGBUILDDIR>>/vcl/source/window/builder.cxx:2122:54:                                                                                                      
> /<<PKGBUILDDIR>>/include/rtl/string.hxx:280:18: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]                                        
>  280 |             *end = '\0';                                                                                                                              
>      |             ~~~~~^~~~~~                                                                                                                               

Forwarded upstream (per IRC)

Upstream says:

14:14 <@sberg> _rene_, and note <https://gerrit.libreoffice.org/c/core/+/85161>

Which says:

"Silence bogus -Wstringop-overflow with GCC trunk towards GCC 10

...see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92893> "Unhelpful
-Wstringop-overflow warning"
"

(there's some more stuff like this, though, but I don't build with
-Werror anyway, so just noting)

Regards,

Rene


Reply to: