{"push_id":2225052353,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"132448f8359a268f34f074b0908b5255b568da06","before":"e9d9f57e11db6427db347bc5b9b100071355e63f","commits":[{"sha":"132448f8359a268f34f074b0908b5255b568da06","author":{"name":"Simon Marchi","email":"64f757e6d553be2119779d07ae9f1dc4014e138f@ericsson.com"},"message":"dwarf2read: Silence -Wenum-compare-switch warning\n\nCompiling with Clang 6 gives:\n\n/home/emaisin/src/binutils-gdb/gdb/dwarf2read.c:24385:14: error: comparison of two values with different enumeration types in switch statement ('enum dwarf_macro_record_type' and 'dwarf_macinfo_record_type') [-Werror,-Wenum-compare-switch]\n        case DW_MACINFO_vendor_ext:\n             ^~~~~~~~~~~~~~~~~~~~~\n/home/emaisin/src/binutils-gdb/gdb/dwarf2read.c:24561:7: error: comparison of two values with different enumeration types in switch statement ('enum dwarf_macro_record_type' and 'dwarf_macinfo_record_type') [-Werror,-Wenum-compare-switch]\n        case DW_MACINFO_vendor_ext:\n             ^~~~~~~~~~~~~~~~~~~~~\n\nThis code uses the two enum types on purpose, because it handles both\n.debug_macro and .debug_macinfo sections.  Add some pragmas to disable\nthe warning in these specific cases.\n\ngdb/ChangeLog:\n\n\t* dwarf2read.c (dwarf_decode_macro_bytes): Ignore\n\t-Wenum-compare-switch warning.\n\t(dwarf_decode_macros): Likewise.","distinct":true,"url":"https://api.github.com/repos/wallento/binutils-gdb/commits/132448f8359a268f34f074b0908b5255b568da06"}]}
{"actor":{"display_login":"wallento"}}