This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Mark error_no_arg() as a no-return function
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] Mark error_no_arg() as a no-return function
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 20 Nov 2000 14:27:10 +1100
FYI,
I've checked in the attatched. The function calls error() and error()
doesn't return.
Andrew
Mon Nov 20 14:29:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
* command.h (error_no_arg): Add noreturn attribute to declaration.
Index: command.h
===================================================================
RCS file: /cvs/src/src/gdb/command.h,v
retrieving revision 1.13
diff -p -r1.13 command.h
*** command.h 2000/11/06 22:44:34 1.13
--- command.h 2000/11/20 03:32:17
*************** extern void do_setshow_command (char *,
*** 347,353 ****
extern void cmd_show_list (struct cmd_list_element *, int, char *);
! extern void error_no_arg (char *);
extern void dont_repeat (void);
--- 347,353 ----
extern void cmd_show_list (struct cmd_list_element *, int, char *);
! extern NORETURN void error_no_arg (char *) ATTR_NORETURN;
extern void dont_repeat (void);