Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by krbdev.mit.edu (8.9.3p2) with ESMTP id PAA17248; Mon, 20 Dec 2004 15:59:13 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id iBKKxCZ3005575; Mon, 20 Dec 2004 15:59:12 -0500 (EST) Received: from [18.18.1.76] (KEN-WIRELESS.MIT.EDU [18.18.1.76]) (authenticated bits=0) (User authenticated as raeburn@ATHENA.MIT.EDU) by outgoing.mit.edu (8.12.4/8.12.4) with ESMTP id iBKKx92d006793 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Mon, 20 Dec 2004 15:59:10 -0500 (EST) MIME-Version: 1.0 (Apple Message framework v619) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Ken Raeburn Subject: Re: [krbdev.mit.edu #2836] feature request: compile/link time warnings for deprecated functions Date: Mon, 20 Dec 2004 15:59:09 -0500 To: rt-comment@krbdev.mit.edu, krb5-prs@mit.edu X-Mailer: Apple Mail (2.619) X-Spam-Score: -4.9 X-Spam-Flag: NO X-Scanned-BY: MIMEDefang 2.42 RT-Send-Cc: X-RT-Original-Encoding: us-ascii Content-Length: 732 On Dec 20, 2004, at 15:11, "Jeffrey Altman [Kermit Project]" via RT wrote: > In Windows there are two options for use with the Microsoft compilers: > > __declspec(deprecated) void func1(int) { > }; > > and > > #pragma deprecated( identifier1 [,identifier2, ...] ) > > The pragma form supports the deprecation of function, type, or any > other > identifier. To deprecate a macro symbol, the symbol is placed in > double > quotes. Useful, thanks. I haven't done the experimentation yet, but I've seen some hints on the net that the __declspec form and gcc's __attribute__ form might both be useable in the same position in a declaration, which would let us define a single macro appropriately for either compiler... Ken