From: Andreas Schwab <schwab@linux-m68k.org>
To: gdb-patches@sourceware.org
Subject: m68k-linux: fix -Wmissing-prototype warning
Date: Wed, 07 Mar 2012 16:35:00 -0000 [thread overview]
Message-ID: <m2y5rcmksp.fsf@igel.home> (raw)
2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
* m68klinux-nat.c (getregs_supplies): Make static.
(getfpregs_supplies): Likewise.
(have_ptrace_getregs): Likewise.
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index 60e4373..c7137c0 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -69,20 +69,20 @@ static const int regmap[] =
#define NUM_GREGS (18)
#define MAX_NUM_REGS (NUM_GREGS + 11)
-int
+static int
getregs_supplies (int regno)
{
return 0 <= regno && regno < NUM_GREGS;
}
-int
+static int
getfpregs_supplies (int regno)
{
return M68K_FP0_REGNUM <= regno && regno <= M68K_FPI_REGNUM;
}
/* Does the current host support the GETREGS request? */
-int have_ptrace_getregs =
+static int have_ptrace_getregs =
#ifdef HAVE_PTRACE_GETREGS
1
#else
--
1.7.9.3
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
reply other threads:[~2012-03-07 16:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m2y5rcmksp.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=gdb-patches@sourceware.org \
/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