[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Expunging K&R-style prototypes?
From: Thomas Dickey <dickey () radix ! net>
Date: 2005-07-27 17:27:46
Message-ID: 20050727172745.GA12801 () saltmine ! radix ! net
[Download RAW message or body]
On Wed, Jul 27, 2005 at 11:02:35AM -0600, Philip Prindeville wrote:
> There is at least one way around this.
>
> Have the tool extract the old declarations into a header file (or many
> header files) and then load them up with -imacros "old_header_decls.h"
> on the command line. The compiler will then complain (when the
> -Wconversion flag is present) of any changed semantics implied by the
> conflict of the two different declaration types.
I'd like to assume that would work. But in practice, gcc's -Wconversion
warning is pretty useless. I could go on at length, but if you spend much
time trying it, you could then do likewise.
> Otherwise, elint might be able to catch these.
;-)
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic