Просмотр исходного кода

Fixed client example not building when ADDNODES is disabled due to missing return value.

ichrispa лет назад: 9
Родитель
Сommit
c0c642dd4e
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      examples/client.c

+ 3 - 0
examples/client.c

@@ -242,6 +242,9 @@ int main(int argc, char *argv[]) {
 
     free(theValue);
     /* Done creating a new node*/
+#else
+  // retNodeId is needed for the next test
+  UA_NodeId retNodeId = UA_NODEID_STRING(1, "the.answer");
 #endif
     // Iterate over all nodes in 'Objects'
     UA_Client_forEachChildNodeCall(client, UA_NODEID_NUMERIC(0, UA_NS0ID_OBJECTSFOLDER), nodeIter);