Repository navigation
Commit 3757158
committed
GCC 16 warns about the IsTypeComplete check in allowCompactPointers()
https://bugs.webkit.org/show_bug.cgi?id=328861
Reviewed by Keith Miller.
allowCompactPointers() checks IsTypeComplete<T> before the
AllowCompactPointers<T*> specialization declared by
WTF_ALLOW_COMPACT_POINTERS_TO_INCOMPLETE_TYPE. JSPromiseReaction and
NodeRareData are checked before their definition, so GCC 16 warns with
-Wsfinae-incomplete. Check the specialization first.
The macro must then precede any compact pointer to the type, so move
the one for JSCell from MicrotaskQueue.h to JSCJSValue.h, which JSCell.h
includes before the class definition.
* Source/JavaScriptCore/runtime/JSCJSValue.h:
* Source/JavaScriptCore/runtime/MicrotaskQueue.h:
* Source/WTF/wtf/FastMalloc.h:
(allowCompactPointers):
Canonical link: https://commits.webkit.org/324681@main1 parent c2c55ba commit 3757158
3 files changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | | - | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
431 | 436 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 437 | + | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
0 commit comments