This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: [patch] cgen/opc-ibld.scm
- To: Eric Christopher <echristo at cygnus dot com>
- Subject: Re: [patch] cgen/opc-ibld.scm
- From: Ben Elliston <bje at redhat dot com>
- Date: Wed, 6 Dec 2000 15:14:05 +1100 (EST)
- Cc: Johan Rydberg <johan dot rydberg at netinsight dot se>, CGEN <cgen at sources dot redhat dot com>, <cagney at redhat dot com>
> In general, I'm not a fan of such annotations in the source. It detracts
> from the readability of the program. IMHO, the compiler should be fixed to
> emit sensible warnings instead.
You get what you ask for. This is a specific warning enabled by the
compiler with -Wall. You could turn it off if you don't think it is
valid :)
According to the man page, -Wall excludes warnings for constructs that are
valid in clean programs. Library design kind of forces this kind of
construct -- providing a fixed interface, but not necessarily using all
arguments in a given function.
Ben