On Wed, 9 Apr 2014, Manuel López-Ibáñez wrote:
On 09/04/14 01:42, Dimitrios Apostolou wrote:> Hello GCC community!
Do you think that the compiler should have warned in query2? Something like
"suggest parentheses around assignment"?
Please open a bug report: http://gcc.gnu.org/bugs/
Thanks, I will open a bug for the warning. But first it needs to be clear
what is the standard C99 mandated behaviour for:
struct addrinfo query2 = {
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM,
query2.ai_flags = AI_PASSIVE
};
Any ideas?
Thanks,
Dimitris