Expunging K&R-style prototypes?
Thomas Dickey
dickey at radix.net
Wed Jul 27 10:27:46 PDT 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20050727/66ba010b/attachment.pgp>
More information about the xorg
mailing list