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/command.h | |
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/command.h')
-rw-r--r-- | gdb/command.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/command.h b/gdb/command.h index 1ab953b..9d84957 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -292,8 +292,8 @@ struct setting /* Getters and setters are cast to and from the arbitrary `void (*) ()` function pointer type. Make sure that the two types are really of the same size. */ - gdb_static_assert (sizeof (m_getter) == sizeof (getter)); - gdb_static_assert (sizeof (m_setter) == sizeof (setter)); + static_assert (sizeof (m_getter) == sizeof (getter)); + static_assert (sizeof (m_setter) == sizeof (setter)); m_getter = reinterpret_cast<erased_func> (getter); m_setter = reinterpret_cast<erased_func> (setter); |