[binutils-gdb] [gdbsupport] Remove duplicate [[noreturn]] on throw_forced_quit

Tom de Vries vries@sourceware.org
Fri Nov 20 10:09:51 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=46c8c555fb469ffa7573a419480abb3daacd1e13

commit 46c8c555fb469ffa7573a419480abb3daacd1e13
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Nov 20 11:09:46 2026 +0100

    [gdbsupport] Remove duplicate [[noreturn]] on throw_forced_quit
    
    The declaration for throw_forced_quit contains a duplicate [[noreturn]]:
    ...
    [[noreturn]] [[noreturn]] extern void throw_forced_quit (const char *fmt, ...)
    ...
    
    Remove it.

Diff:
---
 gdbsupport/common-exceptions.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdbsupport/common-exceptions.h b/gdbsupport/common-exceptions.h
index 058260b5f27..442ead090f9 100644
--- a/gdbsupport/common-exceptions.h
+++ b/gdbsupport/common-exceptions.h
@@ -372,7 +372,7 @@ struct gdb_quit_bad_alloc
   ATTRIBUTE_PRINTF (2, 3);
 [[noreturn]] extern void throw_quit (const char *fmt, ...)
   ATTRIBUTE_PRINTF (1, 2);
-[[noreturn]] [[noreturn]] extern void throw_forced_quit (const char *fmt, ...)
+[[noreturn]] extern void throw_forced_quit (const char *fmt, ...)
   ATTRIBUTE_PRINTF (1, 2);
 
 #endif /* GDBSUPPORT_COMMON_EXCEPTIONS_H */


More information about the Gdb-cvs mailing list