public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: gcc-patches@sources.redhat.com
Cc: davidm@napali.hpl.hp.com
Subject: minor cleanup: mark _Unwind_GetTextRelBase() argument as "unused"
Date: Wed, 02 Oct 2002 22:08:00 -0000	[thread overview]
Message-ID: <200210030508.g9358NZA019611@napali.hpl.hp.com> (raw)

This patch removes an annoying warning which occured when compiling
the unwinder files.  I believe it is OK to rely on GCCisms in this
file (since it's compiled as part of libgcc).

	--david

2002-10-02  David Mosberger-Tang  <David.Mosberger@acm.org>

	* unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
	attribute "unused".

Index: unwind.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/unwind.h,v
retrieving revision 1.6
diff -u -r1.6 unwind.h
--- unwind.h	15 Aug 2002 18:01:30 -0000	1.6
+++ unwind.h	3 Oct 2002 05:05:19 -0000
@@ -182,7 +182,7 @@
 }
 
 static inline _Unwind_Ptr
-_Unwind_GetTextRelBase (struct _Unwind_Context *_C)
+_Unwind_GetTextRelBase (struct _Unwind_Context *_C __attribute__ ((unused)))
 {
   abort ();
   return 0;

             reply	other threads:[~2002-10-03  5:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02 22:08 David Mosberger [this message]
2002-10-02 23:21 ` Richard Henderson
2002-11-07  9:46   ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210030508.g9358NZA019611@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=davidm@hpl.hp.com \
    --cc=gcc-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).