Bug 247064 - Clang build fails with -Wcast-align in ZycoreList.c
Summary: Clang build fails with -Wcast-align in ZycoreList.c
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yijia Huang
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-26 08:17 PDT by Lauro Moura
Modified: 2022-11-02 14:43 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 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
Comment 1 Radar WebKit Bug Importer 2022-11-02 08:18:19 PDT
<rdar://problem/101862332>
Comment 2 Yijia Huang 2022-11-02 12:23:32 PDT
Pull request: https://github.com/WebKit/WebKit/pull/6042
Comment 3 EWS 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.