aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-08 07:22:54 +0000
committerAlan Modra <amodra@gmail.com>2000-05-08 07:22:54 +0000
commit821011cc5b04dd05c9923eae278b676a9ced4ccd (patch)
treeb2d8fe1e11091941280172c5dcc8497127a46e9c /opcodes
parentb35efbcd1b5345fea4be149e365d088d68757364 (diff)
downloadgdb-821011cc5b04dd05c9923eae278b676a9ced4ccd.zip
gdb-821011cc5b04dd05c9923eae278b676a9ced4ccd.tar.gz
gdb-821011cc5b04dd05c9923eae278b676a9ced4ccd.tar.bz2
Kill compiler warnings with ATTRIBUTE_UNUSED.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/m68k-dis.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 6625d83..8625222 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-08 Alan Modra <alan@linuxcare.com.au>
+
+ * m68k-dis.c (dummy_printer): Add ATTRIBUTE_UNUSED to args.
+ (dummy_print_address): Ditto.
+
2000-05-04 Timothy Wall <twall@cygnus.com>
* tic54x-opc.c: New.
diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c
index 10c461d..7f4b110 100644
--- a/opcodes/m68k-dis.c
+++ b/opcodes/m68k-dis.c
@@ -1,5 +1,5 @@
/* Print Motorola 68k instructions.
- Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 98, 1999
+ Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify
@@ -151,16 +151,17 @@ fetch_data (info, addr)
/* This function is used to print to the bit-bucket. */
static int
#ifdef __STDC__
-dummy_printer (FILE * file, const char * format, ...)
+dummy_printer (FILE * file ATTRIBUTE_UNUSED,
+ const char * format ATTRIBUTE_UNUSED, ...)
#else
-dummy_printer (file) FILE *file;
+dummy_printer (file) FILE *file ATTRIBUTE_UNUSED;
#endif
{ return 0; }
static void
dummy_print_address (vma, info)
- bfd_vma vma;
- struct disassemble_info *info;
+ bfd_vma vma ATTRIBUTE_UNUSED;
+ struct disassemble_info *info ATTRIBUTE_UNUSED;
{
}