[Webkit-unassigned] [Bug 204411] New: [JSConly] 32-bits warning on memset of JSValue

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 20 07:33:15 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204411

            Bug ID: 204411
           Summary: [JSConly] 32-bits warning on memset of JSValue
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ticaiolima at gmail.com

This is current warning:

```
[42/54] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-f2e18ffc-17.cpp.o
In file included from ../../Source/JavaScriptCore/heap/Heap.h:31,
                 from ../../Source/JavaScriptCore/heap/DeferGC.h:29,
                 from ../../Source/JavaScriptCore/runtime/ConcurrentJSLock.h:28,
                 from ../../Source/JavaScriptCore/runtime/VM.h:34,
                 from ../../Source/JavaScriptCore/interpreter/CallFrame.h:30,
                 from ../../Source/JavaScriptCore/runtime/ArgList.h:24,
                 from ../../Source/JavaScriptCore/runtime/JSArray.h:23,
                 from ../../Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h:29,
                 from ../../Source/JavaScriptCore/runtime/JSGlobalObject.h:24,
                 from ../../Source/JavaScriptCore/runtime/JSFixedArray.h:28,
                 from ../../Source/JavaScriptCore/runtime/JSFixedArray.cpp:27,
                 from DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-f2e18ffc-17.cpp:1:
../../Source/JavaScriptCore/heap/GCMemoryOperations.h: In instantiation of ‘void JSC::gcSafeZeroMemory(T*, size_t) [with T = JSC::JSValue; size_t = unsigned int]’:
../../Source/JavaScriptCore/runtime/RegExpMatchesArray.h:97:123:   required from here
../../Source/JavaScriptCore/heap/GCMemoryOperations.h:307:11: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘class JSC::JSValue’; use assignment or value-initialization instead [-Wclass-memaccess]
     memset(dst, 0, bytes);
     ~~~~~~^~~~~~~~~~~~~~~
In file included from ../../Source/JavaScriptCore/bytecode/SpeculatedType.h:32,
                 from ../../Source/JavaScriptCore/runtime/IndexingType.h:28,
                 from ../../Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h:28,
                 from ../../Source/JavaScriptCore/runtime/JSGlobalObject.h:24,
                 from ../../Source/JavaScriptCore/runtime/JSFixedArray.h:28,
                 from ../../Source/JavaScriptCore/runtime/JSFixedArray.cpp:27,
                 from DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-f2e18ffc-17.cpp:1:
../../Source/JavaScriptCore/runtime/JSCJSValue.h:136:7: note: ‘class JSC::JSValue’ declared here
 class JSValue {
       ^~~~~~~

```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191120/2241deec/attachment.htm>


More information about the webkit-unassigned mailing list