]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bitwise operation between different enumeration types
authorAlan Modra <amodra@gmail.com>
Tue, 9 Dec 2025 07:16:29 +0000 (17:46 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 9 Dec 2025 09:47:41 +0000 (20:17 +1030)
commitf667dabbffd45a453e8d96f02f031ac7151ca074
tree523e2dd9a42abd74aea784be0ed6263773394f0b
parent9bb91ce42f34798131d60a26a9dda5dae3025c9b
bitwise operation between different enumeration types

mips.cc:9478:50: error: bitwise operation between different enumeration types ‘elfcpp::<unnamed enum>’ and ‘elfcpp::<unnamed enum>’ is deprecated [-Werror=deprecated-enum-enum-conversion]
 9478 |           merged_flags &= ~(elfcpp::EF_MIPS_ARCH | elfcpp::EF_MIPS_MACH);
      |                             ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~

* mips.h: Define all the EF_MIPS values in one enum.
elfcpp/mips.h