# HG changeset patch
# User Edouard Tisserant
# Date 1368704568 -32400
# Node ID e9e9d31938940eac1c792c992842bbccdee3703e
# Parent  950787298c96376ee058e79f83b0ae36014cd6e7
Fixed GCC warnings when building stub code for python PLC globals access

diff -r 950787298c96 -r e9e9d3193894 py_ext/PythonFileCTNMixin.py
--- a/py_ext/PythonFileCTNMixin.py	Thu May 16 13:13:00 2013 +0200
+++ b/py_ext/PythonFileCTNMixin.py	Thu May 16 20:42:48 2013 +0900
@@ -127,12 +127,11 @@
 long __%(name)s_wlock = 0;
 int __%(name)s_wbuffer_written = 0;
 void __SafeGetPLCGlob_%(name)s(IEC_%(IECtype)s *pvalue){
-    IEC_%(IECtype)s res;
     while(AtomicCompareExchange(&__%(name)s_rlock, 0, 1));
     *pvalue = __%(name)s_rbuffer;
     AtomicCompareExchange((long*)&__%(name)s_rlock, 1, 0);
 }
-__SafeSetPLCGlob_%(name)s(IEC_%(IECtype)s *value){
+void __SafeSetPLCGlob_%(name)s(IEC_%(IECtype)s *value){
     while(AtomicCompareExchange(&__%(name)s_wlock, 0, 1));
     __%(name)s_wbuffer = *value;
     __%(name)s_wbuffer_written = 1;