Compilation warning

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 254
Joined: Thu Jun 11 2020 12:18 pm

Compilation warning

Post by seasoned_geek »

All,

I didn't dig into the code, but this warning scares me.

I just pulled down this morning to build in a new VM.

Code: Select all

/home/developer/Projects/cs_build/include/QtCore/qarraydata.h:103:8: note: at offset [26, 50] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24

/home/developer/Projects/cs_build/include/QtCore/qarraydata.h:103:8: note: at offset [26, 50] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24

/home/developer/Projects/cs_build/include/QtCore/qarraydata.h:103:8: note: at offset [26, 50] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24

In file included from /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:27:

In function ‘void qbswap_helper(const uchar*, uchar*, int)’,

    inlined from ‘void qbswap(T, uchar*) [with T = short unsigned int]’ at /home/developer/Projects/cs_build/include/QtCore/qendian.h:45:17,

    inlined from ‘void qToBigEndian(T, uchar*) [with T = short unsigned int]’ at /home/developer/Projects/cs_build/include/QtCore/qendian.h:297:13,

    inlined from ‘QTtfStream& QTtfStream::operator<<(quint16)’ at /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:338:19,

    inlined from ‘QTtfTable generateMaxp(const qttf_maxp_table&)’ at /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:644:19,

    inlined from ‘QByteArray QFontSubset::toTruetype() const’ at /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:1308:30:

/home/developer/Projects/cs_build/include/QtCore/qendian.h:39:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]

   39 |       dest[i] = source[size - 1 - i];
Seems to pop up a lot in the compilation listing.
barbara
Posts: 447
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Compilation warning

Post by barbara »

What OS are you using?

What is the version of the OS?

Which compiler and what version did you use to build CS?
seasoned_geek
Posts: 254
Joined: Thu Jun 11 2020 12:18 pm

Re: Compilation warning

Post by seasoned_geek »

Code: Select all

developer@fedora Projects]$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="35 (Workstation Edition)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f35/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=35
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=35
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
[developer@fedora Projects]$


Code: Select all

[developer@fedora Projects]$ gcc --version
gcc (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I was coming up for air and am getting back into RedDiamond now that the CsScintilla port is basically complete sans packaging. When I created a new Fedora 33 VM it forced upgrade to Fedora 35 with all of the latest bells and whistles.

I setup a Ubuntu 22.05 VM as well but haven't spun up a build on it yet. It's going to have many of the same issues. They really tightened the compiler up.
barbara
Posts: 447
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Compilation warning

Post by barbara »

Fedora 35 / GCC 11 is a newer configuration. Someone on the team is looking into these warnings.

Barbara
Post Reply