This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Warning fix for unwind.h
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Jan 2003 15:55:41 +0100
- Subject: Warning fix for unwind.h
Another warning only visible on ia64.
Andreas.
2003-01-22 Andreas Schwab <schwab@suse.de>
* unwind.h (_Unwind_GetTextRelBase): Mark _C as unused in C, and
omit parameter name in C++.
--- gcc/unwind.h.~1.7.~ 2002-11-28 10:22:06.000000000 +0100
+++ gcc/unwind.h 2003-01-22 14:31:28.000000000 +0100
@@ -1,5 +1,5 @@
/* Exception handling and frame unwind runtime interface routines.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003 Free Software Foundation, Inc.
This file is part of GCC.
@@ -182,7 +182,11 @@ _Unwind_GetDataRelBase (struct _Unwind_C
}
static inline _Unwind_Ptr
-_Unwind_GetTextRelBase (struct _Unwind_Context *_C)
+#ifdef __cplusplus
+_Unwind_GetTextRelBase (struct _Unwind_Context *)
+#else
+_Unwind_GetTextRelBase (struct _Unwind_Context *_C __attribute__ ((__unused__)))
+#endif
{
abort ();
return 0;
--
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."