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

Bug#530949: gcc-4.4: warns about idiomatic use of Berkeley sockets



"brian m. carlson" <sandals@crustytoothpaste.ath.cx> writes:

> This is a standard and idiomatic usage of Berkeley sockets.  AFAIK,
> there is no other way to work with the sockets interface, and even if
> there were, this method is extremely common, not to mention sanctioned
> by POSIX.

It may be idiomatic but it's not strictly valid and the warning
appears to be correct.  For example see:

https://bugzilla.redhat.com/show_bug.cgi?id=448743

which shows that the generated code may not be what you want, and also
suugests how to modify the source code to be valid.



Reply to: