aboutsummaryrefslogtreecommitdiff
path: root/opcodes/dis-buf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-11 20:04:29 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-11 20:04:29 +0000
commit57d91c3cedcd8d6dde2420f9addbbb80ceeade1b (patch)
treee6d8f8402559bf7300b99b406b0c4f331050f0ee /opcodes/dis-buf.c
parentb4c96d0d372cd69f536cb481d0c9554cf9f0eda8 (diff)
downloadgdb-57d91c3cedcd8d6dde2420f9addbbb80ceeade1b.zip
gdb-57d91c3cedcd8d6dde2420f9addbbb80ceeade1b.tar.gz
gdb-57d91c3cedcd8d6dde2420f9addbbb80ceeade1b.tar.bz2
* dis-buf.c: Add ATTRIBUTE_UNUSED as appropriate.
(generic_strcat_address): Add cast to avoid warning. * i386-dis.c: Initialize all structure fields to avoid warnings. Add ATTRIBUTE_UNUSED as appropriate.
Diffstat (limited to 'opcodes/dis-buf.c')
-rw-r--r--opcodes/dis-buf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c
index d76be2e..c6e5121 100644
--- a/opcodes/dis-buf.c
+++ b/opcodes/dis-buf.c
@@ -1,5 +1,5 @@
/* Disassemble from a buffer, for GNU.
- Copyright (C) 1993, 1994, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 1998, 1999 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -85,7 +85,7 @@ generic_strcat_address (addr, buf, len)
char tmpBuf[30];
sprintf_vma (tmpBuf, addr);
- if ((strlen (buf) + strlen (tmpBuf)) <= len)
+ if ((strlen (buf) + strlen (tmpBuf)) <= (unsigned int) len)
strcat (buf, tmpBuf);
else
strncat (buf, tmpBuf, (len - strlen(buf)));
@@ -97,8 +97,8 @@ generic_strcat_address (addr, buf, len)
int
generic_symbol_at_address (addr, info)
- bfd_vma addr;
- struct disassemble_info * info;
+ bfd_vma addr ATTRIBUTE_UNUSED;
+ struct disassemble_info *info ATTRIBUTE_UNUSED;
{
return 1;
}