Commit c7d2fc3
committed
[clang][Sema] Avoid warnings when mixing diagnostic categories (NFC)
These statements conditionally select between diagnostics of different
categories (common vs. sema). Although the diagnostic IDs do not overlap
between categories, they are organized in different enums, and this
raises warnings in specific compilers. The clang warning suggest this
behavior is deprecated in C++20. By converting the diagnostic IDs to
unsigned, we avoid the issue.1 parent a134b06 commit c7d2fc3
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6836 | 6836 | | |
6837 | 6837 | | |
6838 | 6838 | | |
6839 | | - | |
6840 | | - | |
6841 | | - | |
| 6839 | + | |
| 6840 | + | |
| 6841 | + | |
| 6842 | + | |
6842 | 6843 | | |
6843 | 6844 | | |
6844 | 6845 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
677 | | - | |
678 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
679 | 680 | | |
680 | 681 | | |
681 | 682 | | |
| |||
0 commit comments