From 28f297b9021e9224cf0b0f94d6bfff33722fc9f5 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 16 May 2018 13:54:48 +0000 Subject: [PATCH] Annotate mixing of enums from different types with an explicit cast. --- external/gpl3/gdb/dist/gdb/dwarf2read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/gpl3/gdb/dist/gdb/dwarf2read.c b/external/gpl3/gdb/dist/gdb/dwarf2read.c index 8503e6171ce0..1b0cc41d2d9c 100644 --- a/external/gpl3/gdb/dist/gdb/dwarf2read.c +++ b/external/gpl3/gdb/dist/gdb/dwarf2read.c @@ -22159,7 +22159,7 @@ dwarf_decode_macro_bytes (bfd *abfd, } break; - case DW_MACINFO_vendor_ext: + case (int)DW_MACINFO_vendor_ext: if (!section_is_gnu) { unsigned int bytes_read; @@ -22336,7 +22336,7 @@ dwarf_decode_macros (struct dwarf2_cu *cu, unsigned int offset, mac_ptr += offset_size; break; - case DW_MACINFO_vendor_ext: + case (int)DW_MACINFO_vendor_ext: /* Only skip the data by MAC_PTR. */ if (!section_is_gnu) {