This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Turning a single warning into an error in dejagnu test


I'm writing a dejagnu test and encounter this warning at one place:

  warning: passing argument 1 of '...' makes integer from pointer
  without a cast [enabled by default]

Now, I have a "{ dg-error ... }" comment in that line.  The line
is generated from a script among hundreds of others that are all
expected to produce errors, not warnings.  It would be very
inconvenient (= lots of work) to change the script to make an
exception just for that single line (because there's no easy way
to identify lines that produce the warning instead of an error).

So the question is:  Is it possible to turn only this one warning
into an error inside a dejagnu test?  As I understand it, there
are no -W... switches for "enabled by default" options, and I
cannot use -Werror because that would break other tests in the
file.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]