From ae61525fcf456ab395d55c45492a106d1275873a Mon Sep 17 00:00:00 2001
From: Simon Marchi <simon.marchi@efficios.com>
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<typename T>
 struct enum_underlying_type
 {
+  DIAGNOSTIC_PUSH
+  DIAGNOSTIC_IGNORE_ENUM_CONSTEXPR_CONVERSION
   typedef typename
     integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T (0))>::type
     type;
+  DIAGNOSTIC_POP
 };
 
 template <typename E>
