Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [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

* Re: [PATCH] tcomplain and ATTR_NORETURN
  2006-07-18  9:48 [PATCH] tcomplain and ATTR_NORETURN Vladimir Prus
@ 2006-07-18 12:35 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-07-18 12:35 UTC (permalink / raw)
  To: Vladimir Prus; +Cc: gdb-patches

On Tue, Jul 18, 2006 at 01:48:19PM +0400, Vladimir Prus wrote:
> 2006-07-18  Vladimir Prus  <vladimir@codesourcery.com>
> 
> 	* target.c (tcomplain): Mark with ATTR_NORETURN.

This is OK, thanks.

-- 
Daniel Jacobowitz
CodeSourcery


^ 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