Kaynağa Gözat

Update ua_namespace.py

Added dummy statement to ensure variable "retval" is used in every build option.
FlorianPalm 8 yıl önce
ebeveyn
işleme
35cd42e49e
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      tools/pyUANamespace/ua_namespace.py

+ 1 - 0
tools/pyUANamespace/ua_namespace.py

@@ -676,6 +676,7 @@ class opcua_namespace():
     code.append('#include "'+outfilename+'.h"')
     code.append("UA_INLINE UA_StatusCode "+outfilename+"(UA_Server *server) {")
     code.append('UA_StatusCode retval = UA_STATUSCODE_GOOD; ')
+    code.append('if(retval == UA_STATUSCODE_GOOD){retval = UA_STATUSCODE_GOOD;} //ensure that retval is used');
 
     # Before printing nodes, we need to request additional namespace arrays from the server
     for nsid in self.namespaceIdentifiers: