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/nat/aarch64-mte-linux-ptrace.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/nat/aarch64-mte-linux-ptrace.c')
-rw-r--r-- | gdb/nat/aarch64-mte-linux-ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/nat/aarch64-mte-linux-ptrace.c b/gdb/nat/aarch64-mte-linux-ptrace.c index ace3e18..9e2a2ce 100644 --- a/gdb/nat/aarch64-mte-linux-ptrace.c +++ b/gdb/nat/aarch64-mte-linux-ptrace.c @@ -31,7 +31,7 @@ /* Helper function to display various possible errors when reading MTE tags. */ -static void ATTRIBUTE_NORETURN +[[noreturn]] static void aarch64_mte_linux_peek_error (int error) { switch (error) @@ -53,7 +53,7 @@ aarch64_mte_linux_peek_error (int error) /* Helper function to display various possible errors when writing MTE tags. */ -static void ATTRIBUTE_NORETURN +[[noreturn]] static void aarch64_mte_linux_poke_error (int error) { switch (error) |