This document says that CVI 2015 support 'Designated Inits' with warning.
Using CVI 2015 SP1 this instruction
namespaceArray->value.dataSource = (UA_DataSource) {.handle = server, .read = readNamespaces, .write = NULL};
doesn't give any warning and compiles fine, but while executing it produces a 'General Protection' fault.
I suspect this is related to the usage of 'Designated Inits' to set the members of UA_DataSource struct.
Could someone investigate this behavior?
You can see the error trying to run this example from open62541 library (OPC UA).