Repository navigation
Commit a9cc80d
deps: V8: cherry-pick 00508c374a45
Original commit message:
Add V8_HAS_WARNING for portable warning checks
GCC does not provide the function-like __has_warning macro. Invoking it
in a compound preprocessor condition causes a preprocessing error even
when __clang__ is false.
Add V8_HAS_WARNING to v8config.h, following existing feature-detection
helpers. Use it for warning guards in base/macros.h. Compilers without
__has_warning now use the fallback value of zero.
Change-Id: I41d10799fd6f73a8bacbd3648aa0bb792d6b80cd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8385383
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Reviewed-by: Maksim Ivanov <emaxx@google.com>
Cr-Commit-Position: refs/heads/main@{#109976}
Refs: v8/v8@00508c3
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #66537
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>1 parent 801d1c7 commit a9cc80d
3 files changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| |||
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
370 | 377 | | |
371 | 378 | | |
372 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
672 | | - | |
| 671 | + | |
673 | 672 | | |
674 | 673 | | |
675 | 674 | | |
676 | 675 | | |
677 | 676 | | |
678 | 677 | | |
679 | 678 | | |
680 | | - | |
| 679 | + | |
681 | 680 | | |
682 | 681 | | |
683 | | - | |
684 | | - | |
| 682 | + | |
685 | 683 | | |
686 | 684 | | |
687 | 685 | | |
| |||
690 | 688 | | |
691 | 689 | | |
692 | 690 | | |
693 | | - | |
| 691 | + | |
694 | 692 | | |
695 | 693 | | |
0 commit comments