Remove gdb_static_assert

C++17 makes the second parameter to static_assert optional, so we can
remove gdb_static_assert now.
This commit is contained in:
Tom Tromey
2023-10-18 20:44:11 -06:00
parent d02f31bb13
commit 69f6730df3
50 changed files with 105 additions and 110 deletions

View File

@@ -216,7 +216,7 @@ avr_register_name (struct gdbarch *gdbarch, int regnum)
"SREG", "SP", "PC2",
"pc"
};
gdb_static_assert (ARRAY_SIZE (register_names)
static_assert (ARRAY_SIZE (register_names)
== (AVR_NUM_REGS + AVR_NUM_PSEUDO_REGS));
return register_names[regnum];
}