summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-07-31 05:25:52 +0000
committermarcel <marcel@FreeBSD.org>2008-07-31 05:25:52 +0000
commite92a1d88d1012f9d957b2cae9c71f0d4441994c9 (patch)
tree3c7d97e9ca0908009975110f9e81890b3ab78678 /lib/libthread_db
parent9a91b0b82bcd21aac5700918064e49f2f3c59bad (diff)
downloadFreeBSD-src-e92a1d88d1012f9d957b2cae9c71f0d4441994c9.zip
FreeBSD-src-e92a1d88d1012f9d957b2cae9c71f0d4441994c9.tar.gz
Cleanup for WARNS 2.
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/Makefile2
-rw-r--r--lib/libthread_db/arch/arm/libpthread_md.c2
-rw-r--r--lib/libthread_db/arch/powerpc/libpthread_md.c1
-rw-r--r--lib/libthread_db/thread_db.c2
4 files changed, 3 insertions, 4 deletions
diff --git a/lib/libthread_db/Makefile b/lib/libthread_db/Makefile
index 6114f9d..e08bb0d 100644
--- a/lib/libthread_db/Makefile
+++ b/lib/libthread_db/Makefile
@@ -9,7 +9,7 @@ SRCS+= libpthread_md.c
SRCS+= libpthread_db.c
SRCS+= libthr_db.c
INCS= thread_db.h
-WARNS?= 1
+WARNS?= 2
CFLAGS+=-I. -I${.CURDIR}
SYM_MAPS+=${.CURDIR}/Symbol.map
diff --git a/lib/libthread_db/arch/arm/libpthread_md.c b/lib/libthread_db/arch/arm/libpthread_md.c
index a444598..88a804f 100644
--- a/lib/libthread_db/arch/arm/libpthread_md.c
+++ b/lib/libthread_db/arch/arm/libpthread_md.c
@@ -97,7 +97,6 @@ pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc)
void
pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r)
{
- const mcontext_t *mc = &uc->uc_mcontext;
/* XXX */
memset(r, 0, sizeof(*r));
@@ -113,4 +112,5 @@ pt_reg_sstep(struct reg *reg, int step)
{
/* XXX */
+ return (0);
}
diff --git a/lib/libthread_db/arch/powerpc/libpthread_md.c b/lib/libthread_db/arch/powerpc/libpthread_md.c
index a8a95bd..955cc8e 100644
--- a/lib/libthread_db/arch/powerpc/libpthread_md.c
+++ b/lib/libthread_db/arch/powerpc/libpthread_md.c
@@ -80,4 +80,5 @@ pt_reg_sstep(struct reg *reg, int step)
{
/* XXX */
+ return (0);
}
diff --git a/lib/libthread_db/thread_db.c b/lib/libthread_db/thread_db.c
index 6daea63..f129a1e 100644
--- a/lib/libthread_db/thread_db.c
+++ b/lib/libthread_db/thread_db.c
@@ -50,7 +50,6 @@ td_init(void)
{
td_err_e ret, tmp;
struct ta_ops *ops_p, **ops_pp;
- size_t i;
ret = 0;
SET_FOREACH(ops_pp, __ta_ops) {
@@ -104,7 +103,6 @@ td_ta_map_lwp2thr(const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th)
td_err_e
td_ta_new(struct ps_prochandle *ph, td_thragent_t **pta)
{
- size_t i;
struct ta_ops *ops_p, **ops_pp;
SET_FOREACH(ops_pp, __ta_ops) {
OpenPOWER on IntegriCloud