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]

Re: -Wswitch vs -Wuninitialized


On Tue, Nov 21, 2000 at 11:11:01AM +1100, Andrew Cagney wrote:
> I take it that no one has looked at a way of allowing -Wswitch to
> still report a forgotten enum when something like ``default: abort()''
> is present.

No, since most times that would defeat the purpose of the default.
GCC uses enumerations with _hundreds_ of entries.  There's no way
we can list them all explicitly in such cases.


r~

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