This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24577] diagnostic informative note labelled "error"
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 23:38:27 -0000
- Subject: [Bug c/24577] diagnostic informative note labelled "error"
- References: <bug-24577-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from manu at gcc dot gnu dot org 2007-01-31 23:38 -------
(In reply to comment #0)
>
> Other informative notes are labeled "note:". Because this is labelled "error",
> scripts that scan generated compiler output to count errors get wrong counts.
>
Ivan, the fix is trivial. In c-decl.c (undeclared_variable), replace the call
to "error" with a call to "inform". However, it may require updating testcases
and the maintainers may prefer to remove the message altogether. Since this is
a minor issue, it is not strange that people prefer to do something else.
If you are interested in seeing this fixed, this is a good opportunity to learn
how to contribute to GCC, since the patch is trivial, the only difficulty is
the whole process, that may seem complex at the beginning. You can find more
information in http://gcc.gnu.org/contribute.html and ask any question about
contributing in gcc@gcc.gnu.org.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24577