This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Mark error_no_arg() as a no-return function


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);
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]