Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdb: fix clang integer value -1 outside valid range error
Backport gdb patch to fix the "integer value -1 is outside the valid range of values" errors when building with clang 16+. Without the patch, when using clang 16 to build, we get some errors like: In file included from cp-valprint.c:20: In file included from ./defs.h:65: ./../gdbsupport/enum-flags.h:85:52: error: integer value -1 is outside the valid range of values [0, 15] for the enumeration type 'ui_out_flag' [-Wenum-constexpr-conversion] 85 | integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T (0))>::type | ^ ^ GDB ignore -Wenum-constexpr-conversion around enum-flags.h to solve the problem. Related GDB commit: 8cbde735e405 "gdbsupport: ignore -Wenum-constexpr-conversion in enum-flags.h"
- Loading branch information