From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29823 invoked by alias); 3 Oct 2002 05:08:25 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 29816 invoked from network); 3 Oct 2002 05:08:24 -0000 Received: from unknown (HELO deimos.hpl.hp.com) (192.6.19.190) by sources.redhat.com with SMTP; 3 Oct 2002 05:08:24 -0000 Received: from hplms2.hpl.hp.com (hplms2.hpl.hp.com [15.0.152.33]) by deimos.hpl.hp.com (8.9.3 (PHNE_24419)/HPL-PA Relay) with ESMTP id WAA24922 for ; Wed, 2 Oct 2002 22:08:24 -0700 (PDT) Received: from napali.hpl.hp.com (napali.hpl.hp.com [15.4.89.123]) by hplms2.hpl.hp.com (8.10.2/8.10.2 HPL-PA Hub) with ESMTP id g9358Ow25014 for ; Wed, 2 Oct 2002 22:08:24 -0700 (PDT) Received: from napali.hpl.hp.com (napali [127.0.0.1]) by napali.hpl.hp.com (8.12.3/8.12.3/Debian -4) with ESMTP id g9358NHW019615; Wed, 2 Oct 2002 22:08:23 -0700 Received: (from davidm@localhost) by napali.hpl.hp.com (8.12.3/8.12.3/Debian -4) id g9358NZA019611; Wed, 2 Oct 2002 22:08:23 -0700 Date: Wed, 02 Oct 2002 22:08:00 -0000 From: David Mosberger Message-Id: <200210030508.g9358NZA019611@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" Reply-to: davidm@hpl.hp.com X-SW-Source: 2002-10/txt/msg00141.txt.bz2 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 * 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;