From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] tcomplain and ATTR_NORETURN
Date: Tue, 18 Jul 2006 09:48:00 -0000 [thread overview]
Message-ID: <200607181348.20426.vladimir@codesourcery.com> (raw)
[-- 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 *);
next reply other threads:[~2006-07-18 9:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-18 9:48 Vladimir Prus [this message]
2006-07-18 12:35 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200607181348.20426.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox