[2/6] gdb: callback: use ATTRIBUTE_NORETURN

Message ID 20210424184144.23736-2-vapier@gentoo.org
State New
Headers show
Series
  • [1/6] gdb: callback: always include necessary headers
Related show

Commit Message

Carl Love via Gdb-patches April 24, 2021, 6:41 p.m.
This define is handled by ansidecl.h, so no need to duplicate effort.
---
 include/gdb/callback.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

-- 
2.30.2

Patch

diff --git a/include/gdb/callback.h b/include/gdb/callback.h
index af10486e43be..b981d94505d6 100644
--- a/include/gdb/callback.h
+++ b/include/gdb/callback.h
@@ -121,11 +121,7 @@  struct host_callback_struct
   /* Print an error message and "exit".
      In the case of gdb "exiting" means doing a longjmp back to the main
      command loop.  */
-  void (*error) (host_callback *, const char *, ...)
-#ifdef __GNUC__
-    __attribute__ ((__noreturn__))
-#endif
-    ;
+  void (*error) (host_callback *, const char *, ...) ATTRIBUTE_NORETURN;
 
   int last_errno;		/* host format */