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: handling of warnings


skaller <skaller@ozemail.com.au> writes:

| I'm not talking about options in general as your arguments
| here seem to imply.

I'm saying that the same reasons apply whether the flag are for
controling warnings or not.

[...]

| So I need to turn the warning OFF. But I can't, other than by
| using -w to turn all warnings off, because I don't know which
| gcc variant  the client is using, i don't WANT to know,
| and I shouldn't need to know.

It was suggested you test for the presence of a feature before using it.

[...]

| But it is no where *near* as nasty, in my opinion,
| as not being able to use the warning switches at all.
| And that's the position everyone is in if they don't know
| exactly which version of gcc they're using, and that is

It is easy to detect which version of GCC you're using.

-- Gaby


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