This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: redundant error output
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 06 Mar 2009 07:31:08 -0800
- Subject: Re: redundant error output
- References: <22373663.post@talk.nabble.com>
John Boncek <jboncek@Hunter.COM> writes:
> The second line in the error output below seems quite redundant (the first
> line already says essentially the same thing). Is there a way to suppress
> or omit it?
>
> Cal/FieldCal/CalResultFiles.cpp(53): error: `_tcscpy_s' undeclared (first
> use this function)
> Cal/FieldCal/CalResultFiles.cpp(53): error: (Each undeclared identifier is
> reported only once for each function it appears in.)
>
> This adds unnecessary bloat to the output of a big compile when there are a
> number of undefined symbols.
There is no gcc option to disable this helpful note (which only appears
once per invocation of gcc). One approach I've seen people use is to
use a little shell script to run gcc and pass the stderr output through
a sed script to eliminate that error line.
Ian