diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-07-16 16:02:12 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-07-16 18:30:45 -0400 |
commit | d9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3 (patch) | |
tree | b8897a470d1270148fdee39e16f54baa3907a079 /gdb/remote-sim.c | |
parent | 9153eb8a7f5449c9baa67b2349cdfc0a47104c9a (diff) | |
download | gdb-d9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3.zip gdb-d9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3.tar.gz gdb-d9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3.tar.bz2 |
gdb, gdbserver, gdbsupport: use [[noreturn]] instead of ATTRIBUTE_NORETURN
C++ 11 has a built-in attribute for this, no need to use a compat macro.
Change-Id: I90e4220d26e8f3949d91761f8a13cd9c37da3875
Reviewed-by: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index f92de61..67d3f4c 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -69,8 +69,7 @@ static void gdb_os_vprintf_filtered (host_callback *, const char *, va_list); static void gdb_os_evprintf_filtered (host_callback *, const char *, va_list); -static void gdb_os_error (host_callback *, const char *, ...) - ATTRIBUTE_NORETURN; +[[noreturn]] static void gdb_os_error (host_callback *, const char *, ...); /* Naming convention: |