public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* minor cleanup: mark _Unwind_GetTextRelBase() argument as "unused"
@ 2002-10-02 22:08 David Mosberger
  2002-10-02 23:21 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: David Mosberger @ 2002-10-02 22:08 UTC (permalink / raw)
  To: gcc-patches; +Cc: davidm

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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-07 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 22:08 minor cleanup: mark _Unwind_GetTextRelBase() argument as "unused" David Mosberger
2002-10-02 23:21 ` Richard Henderson
2002-11-07  9:46   ` Andreas Schwab

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).