22 lines
689 B
Text
22 lines
689 B
Text
From 12e3f3bc6ec74eb50e04675f5bcf962482d3ff25 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>
|