This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/2] gdb: xtensa: make locally used functions static
- From: Max Filippov <jcmvbkbc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Cc: Maxim Grigoriev <maxim2405 at gmail dot com>, Woody LaRue <larue at cadence dot com>, Marc Gauthier <marc at cadence dot com>, linux-xtensa at linux-xtensa dot org, Max Filippov <jcmvbkbc at gmail dot com>
- Date: Thu, 10 Mar 2016 00:48:25 +0300
- Subject: [PATCH 1/2] gdb: xtensa: make locally used functions static
- Authentication-results: sourceware.org; auth=none
- References: <1457560106-5830-1-git-send-email-jcmvbkbc at gmail dot com>
This fixes 'no previous prototype for function' warnings when building
gdb/xtensa-linux-nat.c
2016-03-10 Max Filippov <jcmvbkbc@gmail.com>
gdb/
* xtensa-linux-nat.c (supply_gregset_reg,
xtensa_linux_fetch_inferior_registers,
xtensa_linux_store_inferior_registers): Mark as static.
---
gdb/xtensa-linux-nat.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index fa62732..4247f70 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -103,7 +103,7 @@ fill_gregset (const struct regcache *regcache,
}
}
-void
+static void
supply_gregset_reg (struct regcache *regcache,
const gdb_gregset_t *gregsetp, int regnum)
{
@@ -260,7 +260,7 @@ store_xtregs (struct regcache *regcache, int regnum)
perror_with_name (_("Couldn't write extended registers"));
}
-void
+static void
xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum)
{
@@ -275,7 +275,7 @@ xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
fetch_xtregs (regcache, regnum);
}
-void
+static void
xtensa_linux_store_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum)
{
--
2.1.4