[Libreoffice-bugs] [Bug 117644] New -Wrestrict warning for GCC 9.0

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jun 18 16:20:47 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=117644

--- Comment #2 from Stephan Bergmann <sbergman at redhat.com> ---
Came across that with a fresh GCC trunk (towards GCC 9) build now, too.  Looks
like a legitimate warning to me, as it appears that cnt - 1 == i can be true. 
However, with a patch of "if (cnt - 1 != i)" around that memcpy, GCC still
emits the warning, for which I now filed
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86196> "Bogus -Wrestrict on
memcpy".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180618/e42c1b69/attachment.html>


More information about the Libreoffice-bugs mailing list