From 12e3f3bc6ec74eb50e04675f5bcf962482d3ff25 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 23 Feb 2023 12:35:40 -0500 Subject: [PATCH] gdbsupport: ignore -Wenum-constexpr-conversion in enum-flags.h Index: gdb/gdbsupport/enum-flags.h --- gdb/gdbsupport/enum-flags.h.orig +++ gdb/gdbsupport/enum-flags.h @@ -81,9 +81,12 @@ template<> struct integer_for_size<8, 1> { typedef int template struct enum_underlying_type { + DIAGNOSTIC_PUSH + DIAGNOSTIC_IGNORE_ENUM_CONSTEXPR_CONVERSION typedef typename integer_for_size(T (-1) < T (0))>::type type; + DIAGNOSTIC_POP }; template