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/nat | |
parent | d02f31bb130fd54fa2891cbc28fbc01f603eca6c (diff) | |
download | binutils-69f6730df3d18216126283864246eaf538bdf91d.zip binutils-69f6730df3d18216126283864246eaf538bdf91d.tar.gz binutils-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/nat')
-rw-r--r-- | gdb/nat/amd64-linux-siginfo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/nat/amd64-linux-siginfo.c b/gdb/nat/amd64-linux-siginfo.c index 00bb5e5..0de370d 100644 --- a/gdb/nat/amd64-linux-siginfo.c +++ b/gdb/nat/amd64-linux-siginfo.c @@ -604,10 +604,10 @@ amd64_linux_siginfo_fixup_common (siginfo_t *ptrace, gdb_byte *inf, /* Sanity check for the siginfo structure sizes. */ -gdb_static_assert (sizeof (siginfo_t) == GDB_SI_SIZE); +static_assert (sizeof (siginfo_t) == GDB_SI_SIZE); #ifndef __ILP32__ -gdb_static_assert (sizeof (nat_siginfo_t) == GDB_SI_SIZE); +static_assert (sizeof (nat_siginfo_t) == GDB_SI_SIZE); #endif -gdb_static_assert (sizeof (compat_x32_siginfo_t) == GDB_SI_SIZE); -gdb_static_assert (sizeof (compat_siginfo_t) == GDB_SI_SIZE); -gdb_static_assert (sizeof (ptrace_siginfo_t) == GDB_SI_SIZE); +static_assert (sizeof (compat_x32_siginfo_t) == GDB_SI_SIZE); +static_assert (sizeof (compat_siginfo_t) == GDB_SI_SIZE); +static_assert (sizeof (ptrace_siginfo_t) == GDB_SI_SIZE); |