This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[PATCH] tcomplain and ATTR_NORETURN


Hi,
the attached patch marks the tcomplain function with ATTR_NORETURN, to avoid 
compiler warnings in this situation:

int whatever
{
   tcomplain();
}

OK?

- Volodya

2006-07-18  Vladimir Prus  <vladimir@codesourcery.com>

	* target.c (tcomplain): Mark with ATTR_NORETURN.

--- target.c	(revision 173)
+++ target.c	(revision 174)
@@ -52,7 +52,7 @@ static int default_region_ok_for_hw_watc
 
 static int nosymbol (char *, CORE_ADDR *);
 
-static void tcomplain (void);
+static void tcomplain (void) ATTR_NORETURN;
 
 static int nomemory (CORE_ADDR, char *, int, int, struct target_ops *);
 

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