Open Bug 1411029 (class-memaccess) Opened 2 years ago Updated 1 year ago

[meta] -Wclass-memaccess warnings

Categories

(Firefox Build System :: Source Code Analysis, enhancement)

enhancement
Not set

Tracking

(Not tracked)

People

(Reporter: Sylvestre, Unassigned)

References

Details

(Keywords: meta)

No description provided.
Summary: -Wclass-memaccess warnings → [meta] -Wclass-memaccess warnings
Depends on: 1411030
Depends on: 1411584
Blocks: build-gcc-8
Depends on: 1411605
Depends on: 1411615
Depends on: 1411625
Depends on: 1411626
Depends on: 1411630
Depends on: 1437532
Depends on: 1437533
Product: Core → Firefox Build System
Depends on: 1461600
Depends on: 1461632
Duplicate of this bug: 418558
Depends on: 1464809
Here is the list of remaining issues:
warning: dom/base/nsAttrAndChildArray.cpp:467:58 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct nsAttrAndChildArray::InternalAttr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead
warning: dom/base/nsAttrAndChildArray.cpp:468:65 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of type 'struct nsAttrAndChildArray::InternalAttr' with no trivial copy-assignment; use assignment instead
warning: dom/base/nsAttrAndChildArray.cpp:920:45 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct nsAttrAndChildArray::InternalAttr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead
warning: dom/base/nsMappedAttributes.cpp:169:82 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct nsMappedAttributes::InternalAttr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead
warning: dom/base/nsMappedAttributes.cpp:257:57 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct nsMappedAttributes::InternalAttr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead
warning: dom/plugins/base/nsJSNPRuntime.cpp:2148:57 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of type 'NPObjectMemberPrivate' {aka 'struct NPObjectMemberPrivate'} with no trivial copy-assignment; use assignment or value-initialization instead
warning: dom/workers/RuntimeService.cpp:851:47 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of type 'class mozilla::dom::workerinternals::{anonymous}::WorkerThreadContextPrivate' with no trivial copy-assignment
warning: dom/worklet/Worklet.cpp:485:55 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of type 'class mozilla::dom::WorkletLoadInfo' with no trivial copy-assignment; use assignment or value-initialization instead
warning: dom/worklet/WorkletThread.cpp:42:47 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of type 'class mozilla::dom::{anonymous}::WorkletThreadContextPrivate' with no trivial copy-assignment
warning: dom/xslt/xpath/txNodeSet.cpp:118:61 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class txXPathNode'; use copy-assignment or copy-initialization instead
warning: dom/xslt/xpath/txNodeSet.cpp:288:64 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class txXPathNode'; use copy-assignment or copy-initialization instead
warning: dom/xslt/xpath/txNodeSet.cpp:396:48 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class txXPathNode'; use copy-assignment or copy-initialization instead
warning: dom/xslt/xpath/txNodeSet.cpp:513:60 [-Wclass-memaccess] 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class txXPathNode'; use copy-assignment or copy-initialization instead
warning: dom/xslt/xpath/txNodeSet.cpp:542:59 [-Wclass-memaccess] 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class txXPathNode'; use copy-assignment or copy-initialization instead
warning: dom/xslt/xpath/txNodeSet.cpp:548:65 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class txXPathNode'; use assignment instead
warning: dom/xslt/xpath/txNodeSet.cpp:621:64 [-Wclass-memaccess] 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class txXPathNode'; use copy-assignment or copy-initialization instead
warning: js/xpconnect/src/XPCJSContext.cpp:1009:52 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mozilla::dom::PerThreadAtomCache'; use assignment or value-initialization instead
warning: layout/tables/nsTableFrame.cpp:7977:76 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct BCBlockDirSeg'; use assignment or value-initialization instead
warning: netwerk/cache/nsDiskCacheMap.cpp:88:54 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct nsDiskCacheHeader'; use assignment or value-initialization instead
warning: netwerk/cache/nsDiskCacheMap.cpp:371:73 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class nsDiskCacheRecord'; use assignment or value-initialization instead
warning: netwerk/test/gtest/parse-ftp/TestParseFTPList.cpp:107:34 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct list_state'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:32:9 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct nsMemoryReporterManager::SizeOfTabFns'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:32:9 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mozilla::SandboxReport'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:32:9 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct nsMemoryReporterManager::AmountFns'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:32:9 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mozilla::SPSData'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:32:9 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class mozilla::adts::FrameHeader'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:32:9 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct xpc::GlobalProperties'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:46:11 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mozilla::gfx::PointTyped<mozilla::CSSPixel>'; use assignment or value-initialization instead
warning: obj-x86_64-pc-linux-gnu/dist/include/mozilla/PodOperations.h:110:11 [-Wclass-memaccess] 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct mozilla::dom::AudioTimelineEvent' with no trivial copy-assignment; use copy-assignment or copy-initialization instead
warning: tools/profiler/core/platform.cpp:1219:42 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct lul::UnwindRegs'; use assignment or value-initialization instead
warning: tools/profiler/lul/LulMain.cpp:1521:42 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct lul::UnwindRegs'; use assignment or value-initialization instead
warning: tools/profiler/tests/gtest/LulTestDwarf.cpp:2442:34 [-Wclass-memaccess] 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct lul::UnwindRegs'; use assignment or value-initialization instead

I created bug 1464809 to disable the -Werror on this warning.
Depends on: 1474183
Severity: normal → enhancement
Keywords: meta
All dependent bugs are now fixed.
You need to log in before you can comment on or make changes to this bug.