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/dwarf2/read-gdb-index.c | |
parent | d02f31bb130fd54fa2891cbc28fbc01f603eca6c (diff) | |
download | fsf-binutils-gdb-69f6730df3d18216126283864246eaf538bdf91d.zip fsf-binutils-gdb-69f6730df3d18216126283864246eaf538bdf91d.tar.gz fsf-binutils-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/dwarf2/read-gdb-index.c')
-rw-r--r-- | gdb/dwarf2/read-gdb-index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read-gdb-index.c b/gdb/dwarf2/read-gdb-index.c index 7788626..da180fa 100644 --- a/gdb/dwarf2/read-gdb-index.c +++ b/gdb/dwarf2/read-gdb-index.c @@ -648,7 +648,7 @@ create_cus_from_gdb_index_list (dwarf2_per_bfd *per_bfd, { for (offset_type i = 0; i < n_elements; i += 2) { - gdb_static_assert (sizeof (ULONGEST) >= 8); + static_assert (sizeof (ULONGEST) >= 8); sect_offset sect_off = (sect_offset) extract_unsigned_integer (cu_list, 8, BFD_ENDIAN_LITTLE); @@ -700,7 +700,7 @@ create_signatured_type_table_from_gdb_index void **slot; cu_offset type_offset_in_tu; - gdb_static_assert (sizeof (ULONGEST) >= 8); + static_assert (sizeof (ULONGEST) >= 8); sect_offset sect_off = (sect_offset) extract_unsigned_integer (bytes, 8, BFD_ENDIAN_LITTLE); type_offset_in_tu |