Skip to content

Commit 01e0296

Browse files
committed
[clang] Temporarily silence noisy warning for FPEvalMethod
See llvm#137600 (comment)
1 parent 132f786 commit 01e0296

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/include/clang/Basic/LangOptions.def

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,17 @@ BENIGN_ENUM_LANGOPT(DefaultFPContractMode, FPModeKind, 2, FPM_Off, "FP contracti
347347
COMPATIBLE_LANGOPT(ExpStrictFP, 1, false, "Enable experimental strict floating point")
348348
BENIGN_LANGOPT(RoundingMath, 1, false, "Do not assume default floating-point rounding behavior")
349349
BENIGN_ENUM_LANGOPT(FPExceptionMode, FPExceptionModeKind, 2, FPE_Default, "FP Exception Behavior Mode type")
350+
351+
#if defined(__clang__)
352+
// FIXME: Remove this once the warning is fixed, https://llvm.org/PR137600
353+
#pragma clang diagnostic push
354+
#pragma clang diagnostic ignored "-Wpreferred-type-bitfield-enum-conversion"
355+
#endif
350356
BENIGN_ENUM_LANGOPT(FPEvalMethod, FPEvalMethodKind, 3, FEM_UnsetOnCommandLine, "FP type used for floating point arithmetic")
357+
#if defined(__clang__)
358+
#pragma clang diagnostic pop
359+
#endif
360+
351361
ENUM_LANGOPT(Float16ExcessPrecision, ExcessPrecisionKind, 2, FPP_Standard, "Intermediate truncation behavior for Float16 arithmetic")
352362
ENUM_LANGOPT(BFloat16ExcessPrecision, ExcessPrecisionKind, 2, FPP_Standard, "Intermediate truncation behavior for BFloat16 arithmetic")
353363
LANGOPT(NoBitFieldTypeAlign , 1, 0, "bit-field type alignment")

0 commit comments

Comments
 (0)