This is the mail archive of the gcc-patches@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]

Re: [warning control] new -W[no-]error-foo option


"Joseph S. Myers" <joseph@codesourcery.com> writes:

| On Tue, 17 Jan 2006, DJ Delorie wrote:
| 
| > I'm not sure if I got all the useful permutations, but here are 12
| > testcases.  Do these seem sufficient?
| 
| For this you really need every test to assert whether it is a warning or 
| an error, using
| 
|   dg-warning "warning: ..."
| 
| or
| 
|   dg-error "error: ..."

that is clumsy; and I beliebe it was already mentioned in previous
threads on the topic.  The proper fix is to get help from Janis to
have dg-warning recognize the prefix "warning: ", so on for dg-error
and others.

-- Gaby


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