* 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
* Re: minor cleanup: mark _Unwind_GetTextRelBase() argument as "unused"
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
0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2002-10-02 23:21 UTC (permalink / raw)
To: davidm; +Cc: gcc-patches, davidm
On Wed, Oct 02, 2002 at 10:08:23PM -0700, David Mosberger wrote:
> * unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
> attribute "unused".
Applied.
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: minor cleanup: mark _Unwind_GetTextRelBase() argument as "unused"
2002-10-02 23:21 ` Richard Henderson
@ 2002-11-07 9:46 ` Andreas Schwab
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2002-11-07 9:46 UTC (permalink / raw)
To: Richard Henderson; +Cc: davidm, gcc-patches, davidm
Richard Henderson <rth@redhat.com> writes:
|> On Wed, Oct 02, 2002 at 10:08:23PM -0700, David Mosberger wrote:
|> > * unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
|> > attribute "unused".
|>
|> Applied.
The file is also used in C++ where this syntax is not allowed.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ 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).