Commit c4a98bd
Fix no-enum-constexpr-conversion compilation error in DX12 backend with clang-cl (#696)
The warning suppression -Wno-enum-constexpr-conversion no longer works
on recent Clang versions because the warning it used to suppress has been
promoted to an error that cannot be disabled
(see llvm/llvm-project#59036).
Also, the previous error in RootParamsManager.cpp was due to converting -1
to a D3D12_DESCRIPTOR_RANGE_TYPE enum in a constexpr context. Clang rejects
this, but it allows the conversion for a regular const. The code has been
updated to use a const instead of constexpr, making the conversion valid.
Since the original issue that motivated the warning suppression no longer
applies, we can safely remove -Wno-enum-constexpr-conversion.
Co-authored-by: Assiduous <[email protected]>1 parent 44ed712 commit c4a98bd
File tree
2 files changed
+1
-2
lines changed- Graphics/GraphicsEngineD3D12/src
2 files changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments