Bug 247064
| Summary: | Clang build fails with -Wcast-align in ZycoreList.c | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
| Component: | JavaScriptCore | Assignee: | 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
/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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/101862332>
Yijia Huang
Pull request: https://github.com/WebKit/WebKit/pull/6042
EWS
Committed 256244@main (8d013e8f190b): <https://commits.webkit.org/256244@main>
Reviewed commits have been landed. Closing PR #6042 and removing active labels.