non-trivial designated initializers not supported
I have a structure as follows:
struct app_data { int port; int ib_port; unsigned size; int tx_depth; int sockfd; char *servername; struct ib_connection local_connection; struct ib_connection *remote_connection; struct ibv_device *ib_dev; }; When I try to initialize it thus:
struct app_data data = { .port = 18515, .ib_port = 1, .size = 65536, .tx_depth = 100, .sockfd = -1, .servername = NULL, .remote_connection = NULL, .ib_dev = NULL }; I get this error:
[Read More]