forked from Imagelibrary/binutils-gdb
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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user