[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#320630: libc6-dev: /usr/include/sys/socket.h broken with g++ 4.x



On Sat, Jul 30, 2005 at 10:01:14PM +0200, Jan-Benedict Glaw wrote:
> On Sat, 2005-07-30 22:07:42 +0300, Jaakko Niemi <liiwi@lonesom.pp.fi> wrote:
> > On Sat, 30 Jul 2005, Christoph Hellwig wrote:
> > > >  http://lists.debian.org/debian-devel/2005/07/msg01486.html
> > > > 
> > > >  for more discussion about this. So, please just ditch the
> > > >  enum and leave #defines.
> > > 
> > > No, changing headers that way is a bad idea.  Fix your program to
> > > not assume whether constants are anonymous unions or defines.
> > 
> >  What is the enum needed for?
> 
> enums are generally a good think and underestimated. They for example
> allow the compiler to check switch() statements if all possible input is
> handled there.

Not generally relevant for unnamed enums.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: