diff options
author | Tom Tromey <tom@tromey.com> | 2023-10-18 20:44:11 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-11-29 14:29:44 -0700 |
commit | 69f6730df3d18216126283864246eaf538bdf91d (patch) | |
tree | e17002e214e8d6d2ea423575e29b56f90005b778 /gdb/arc-linux-tdep.c | |
parent | d02f31bb130fd54fa2891cbc28fbc01f603eca6c (diff) | |
download | gdb-69f6730df3d18216126283864246eaf538bdf91d.zip gdb-69f6730df3d18216126283864246eaf538bdf91d.tar.gz gdb-69f6730df3d18216126283864246eaf538bdf91d.tar.bz2 |
Remove gdb_static_assert
C++17 makes the second parameter to static_assert optional, so we can
remove gdb_static_assert now.
Diffstat (limited to 'gdb/arc-linux-tdep.c')
-rw-r--r-- | gdb/arc-linux-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arc-linux-tdep.c b/gdb/arc-linux-tdep.c index 8c0f7ae..33dabc7 100644 --- a/gdb/arc-linux-tdep.c +++ b/gdb/arc-linux-tdep.c @@ -549,7 +549,7 @@ arc_linux_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t size) { - gdb_static_assert (ARC_LAST_REGNUM + static_assert (ARC_LAST_REGNUM < ARRAY_SIZE (arc_linux_core_reg_offsets)); const bfd_byte *buf = (const bfd_byte *) gregs; @@ -612,7 +612,7 @@ arc_linux_collect_gregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t size) { - gdb_static_assert (ARC_LAST_REGNUM + static_assert (ARC_LAST_REGNUM < ARRAY_SIZE (arc_linux_core_reg_offsets)); gdb_byte *buf = (gdb_byte *) gregs; |