commit | 24a601dd70a53fc87f33196774f8d883be31d2fe | [log] [tgz] |
---|---|---|
author | Tom de Vries <tdevries@suse.de> | Thu Aug 17 10:41:34 2023 +0200 |
committer | Tom de Vries <tdevries@suse.de> | Thu Aug 17 10:41:34 2023 +0200 |
tree | 9f6f6dff80927de482ec90df07240ea45867cc47 | |
parent | f0ae7030f00ea08c9ec09493b6ece447879bcab4 [diff] |
[gdb/build, c++20] Fix Wdeprecated-enum-enum-conversion When building gdb with clang 15 and -std=c++20, I run into: ... gdbsupport/common-exceptions.h:203:32: error: arithmetic between different \ enumeration types ('const enum return_reason' and 'const enum errors') is \ deprecated [-Werror,-Wdeprecated-enum-enum-conversion] size_t result = exc.reason + exc.error; ~~~~~~~~~~ ^ ~~~~~~~~~ ... Fix this by using to_underlying. Likewise in a few other places. Tested on x86_64-linux.