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]

Re: RFC: Named warnings


Mark Mitchell <mark@codesourcery.com> writes:

[...]

| My claim is very simple: this is a bigger can of worms than it looks
| like, and numbers are a relatively simple, time-tested solution; one
| that we know from experience can be made to work, both for users and
| for implementors.

I'm having hard time to figure out how it can be argued that enumerations
are better than magic constants in source codes and not apply the same
very reasons for this particular case, given that there is no vendor-neutral
numbers agreed on.  As I said earlier, I find codes will numbered
#pragmas very difficult to read.  Named warnings can be made flexible
and we can leave ourselves maximum wiggle room as you're suggesting.

-- Gaby


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