* [PATCH] tcomplain and ATTR_NORETURN
@ 2006-07-18 9:48 Vladimir Prus
2006-07-18 12:35 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Prus @ 2006-07-18 9:48 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
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.
[-- Attachment #2: 1_tcomplain.diff --]
[-- Type: text/x-diff, Size: 316 bytes --]
--- 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 *);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-18 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-18 9:48 [PATCH] tcomplain and ATTR_NORETURN Vladimir Prus
2006-07-18 12:35 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox