This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] tcomplain and ATTR_NORETURN
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 18 Jul 2006 13:48:19 +0400
- Subject: [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 *);