This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Get rid of some warnings



The appended patch removes the following warnings:

/cvs/binutils-ln/opcodes/disassemble.c:325: warning: unused parameter `stream'
/cvs/binutils-ln/binutils/unwind-ia64.c:580: warning: unused parameter `code'
/cvs/binutils-ln/binutils/unwind-ia64.c:600: warning: unused parameter `code'
/cvs/binutils-ln/binutils/unwind-ia64.c:622: warning: unused parameter `code'
/cvs/binutils-ln/binutils/unwind-ia64.c:646: warning: unused parameter `code'

Ok to commit?

Andreas

2001-06-23  Andreas Jaeger  <aj@suse.de>

	* disassemble.c (disassembler_usage): Add unused attribute.

2001-06-23  Andreas Jaeger  <aj@suse.de>

	* unwind-ia64.c (unw_decode_x1): Add unused attribute for
	parameter 'code'.
	(unw_decode_x2): Likewise.
	(unw_decode_x3): Likewise.
	(unw_decode_x4): Likewise.

============================================================
Index: binutils/unwind-ia64.c
--- binutils/unwind-ia64.c	2001/03/13 06:43:58	1.3
+++ binutils/unwind-ia64.c	2001/06/23 09:11:44
@@ -577,7 +577,7 @@
 static const unsigned char *
 unw_decode_x1 (dp, code, arg)
      const unsigned char * dp;
-     unsigned char         code;
+     unsigned char         code ATTRIBUTE_UNUSED;
      void *                arg ATTRIBUTE_UNUSED;
 {
   unsigned char byte1, abreg;
@@ -597,7 +597,7 @@
 static const unsigned char *
 unw_decode_x2 (dp, code, arg)
      const unsigned char * dp;
-     unsigned char         code;
+     unsigned char         code ATTRIBUTE_UNUSED;
      void *                arg ATTRIBUTE_UNUSED;
 {
   unsigned char byte1, byte2, abreg, x, ytreg;
@@ -619,7 +619,7 @@
 static const unsigned char *
 unw_decode_x3 (dp, code, arg)
      const unsigned char * dp;
-     unsigned char         code;
+     unsigned char         code ATTRIBUTE_UNUSED;
      void *                arg ATTRIBUTE_UNUSED;
 {
   unsigned char byte1, byte2, abreg, qp;
@@ -643,7 +643,7 @@
 static const unsigned char *
 unw_decode_x4 (dp, code, arg)
      const unsigned char * dp;
-     unsigned char         code;
+     unsigned char         code ATTRIBUTE_UNUSED;
      void *                arg ATTRIBUTE_UNUSED;
 {
   unsigned char byte1, byte2, byte3, qp, abreg, x, ytreg;
============================================================
Index: opcodes/disassemble.c
--- opcodes/disassemble.c	2001/05/07 09:21:56	1.26
+++ opcodes/disassemble.c	2001/06/23 09:11:45
@@ -322,7 +322,7 @@
 
 void
 disassembler_usage (stream)
-     FILE * stream;
+     FILE * stream ATTRIBUTE_UNUSED;
 {
 #ifdef ARCH_arm
   print_arm_disassembler_options (stream);

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]