This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Named warnings
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: Mark Mitchell <mark at codesourcery dot com>, Stan Shebs <shebs at apple dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: 24 Jan 2003 12:51:45 +0100
- Subject: Re: RFC: Named warnings
- Organization: Integrable Solutions
- References: <Pine.LNX.4.33.0301241134060.5267-100000@kern.srcf.societies.cam.ac.uk>
"Joseph S. Myers" <jsm28@cam.ac.uk> writes:
| On 24 Jan 2003, Gabriel Dos Reis wrote:
|
| > I disagree. *Some* warnings are language-independent -- thery are
| > usually triggered by middle- or back-end. Others are highly
| > language-dependent. Trying to make a number means different warnings
| > depending on the selected language is very confusing.
|
| But, whatever scheme is used, some effort should be made to use the same
| code for warnings in the C and C++ front ends that are in some sense the
| same warning (possibly differently worded).
Surely, just like the current -Wxxx scheme works. However having
12367 means "don't derive from this class" in C++ whereas it means
"don't accept COMMON" in FORTRAN is really confusing.
-- Gaby