Bug 247064

Summary: Clang build fails with -Wcast-align in ZycoreList.c
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: JavaScriptCoreAssignee: Yijia Huang <yijia_huang>
Status: RESOLVED FIXED    
Severity: Normal CC: mark.lam, msaboff, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=245176
https://bugs.webkit.org/show_bug.cgi?id=244024

Lauro Moura
Reported 2022-10-26 08:17:10 PDT
/app/webkit/Source/JavaScriptCore/disassembler/zydis/Zydis/ZycoreList.c:97:21: error: cast from 'ZyanU8 *' (aka 'unsigned char *') to 'ZyanListNode *' (aka 'struct ZyanListNode_ *') increases required alignment from 1 to 8 [-Werror,-Wcast-align] *node = (ZyanListNode*)((ZyanU8*)list->buffer + size); compiler explorer example: https://godbolt.org/z/7hY5K7s4o
Attachments
Radar WebKit Bug Importer
Comment 1 2022-11-02 08:18:19 PDT
Yijia Huang
Comment 2 2022-11-02 12:23:32 PDT
EWS
Comment 3 2022-11-02 14:43:49 PDT
Committed 256244@main (8d013e8f190b): <https://commits.webkit.org/256244@main> Reviewed commits have been landed. Closing PR #6042 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.